From ff10225fc4e7041b6612cc4e4398a81f69babb2e Mon Sep 17 00:00:00 2001 From: Rauno Tegelmann Date: Wed, 24 Jul 2024 17:57:34 +0300 Subject: [PATCH 1/4] feat: enable support for ARMv7 devices resolves #171 --- .github/workflows/ci.yml | 2 +- .github/workflows/pre-release.yml | 2 +- .github/workflows/release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f14d03c..ad441b84 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v7 tags: | ghcr.io/raunot/plex-rewind:${{ github.sha }} build-args: | diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 9b91cda9..0f4c3a77 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -56,7 +56,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v7 tags: | ghcr.io/raunot/plex-rewind:develop ghcr.io/raunot/plex-rewind:${{ env.NEXT_VERSION_TAG }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9de21e48..dbcd295f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -61,7 +61,7 @@ jobs: with: context: . push: true - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/arm/v7 tags: | ghcr.io/raunot/plex-rewind:latest ghcr.io/raunot/plex-rewind:${{ env.NEXT_VERSION_TAG }} From a31378be2045f78a656e2199119fcfb9f80f448a Mon Sep 17 00:00:00 2001 From: Rauno Tegelmann Date: Wed, 4 Dec 2024 18:39:48 +0200 Subject: [PATCH 2/4] fix: disable swcMinify --- next.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.mjs b/next.config.mjs index 6938b964..d46fd7f6 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -20,6 +20,7 @@ const nextConfig = { }, ], }, + swcMinify: false, // logging: { // fetches: { // fullUrl: true, From 7096fd61761a3d404cc78bdf92b28a452f061a77 Mon Sep 17 00:00:00 2001 From: Rauno Tegelmann Date: Wed, 4 Dec 2024 18:50:50 +0200 Subject: [PATCH 3/4] fix: update babel --- .babelrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 00000000..1ff94f7e --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["next/babel"] +} From 5ae398f79a43ba809427f734f9373a6645c15042 Mon Sep 17 00:00:00 2001 From: Rauno Tegelmann Date: Wed, 4 Dec 2024 18:54:50 +0200 Subject: [PATCH 4/4] build: use regular node:22 image --- .babelrc | 3 --- Dockerfile | 2 +- next.config.mjs | 1 - 3 files changed, 1 insertion(+), 5 deletions(-) delete mode 100644 .babelrc diff --git a/.babelrc b/.babelrc deleted file mode 100644 index 1ff94f7e..00000000 --- a/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "presets": ["next/babel"] -} diff --git a/Dockerfile b/Dockerfile index ad4d039c..a4d508d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:22-slim AS base +FROM node:22 AS base # Install dependencies only when needed FROM base AS deps diff --git a/next.config.mjs b/next.config.mjs index d46fd7f6..6938b964 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -20,7 +20,6 @@ const nextConfig = { }, ], }, - swcMinify: false, // logging: { // fetches: { // fullUrl: true,