From e081fe64c0062fda39753a201fb6206e2b566229 Mon Sep 17 00:00:00 2001 From: Muhammed Hussein Karimi Date: Sat, 30 Nov 2024 14:22:53 +0330 Subject: [PATCH] :pencil2: Trying to fix exec /usr/local/bin/docker-entrypoint.sh: exec format error Signed-off-by: Muhammed Hussein Karimi --- .github/workflows/publish.yaml | 1 + Dockerfile | 2 +- package.json | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 04d4e97..32db96b 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -50,6 +50,7 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max context: . + platforms: linux/amd64 labels: ${{ steps.meta.outputs.labels }} push: true tags: | diff --git a/Dockerfile b/Dockerfile index 370faeb..426567e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,4 +49,4 @@ EXPOSE 3000 ENV PORT 3000 ENV HOSTNAME "0.0.0.0" -CMD node server.js +CMD ["node" "server.js"] diff --git a/package.json b/package.json index 717f63b..2726778 100644 --- a/package.json +++ b/package.json @@ -27,5 +27,6 @@ "eslint": "^9.15.0", "eslint-config-next": "15.0.3", "typescript": "^5.7.2" - } + }, + "packageManager": "^pnpm@9.12.3" }