From 1ad84e7ea3f9bbbb2d59d4acb25ce6dbc2ba8e80 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Wed, 30 Apr 2025 18:59:05 +0200 Subject: [PATCH] Docker startup command fix --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index abf3688..3bea224 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,12 +42,12 @@ RUN npm prune --production EXPOSE 3000 # Dynamically set PRISMA_CLI_BINARY_TARGETS based on runtime architecture and start -CMD ["sh", "-c", \ - "export PRISMA_CLI_BINARY_TARGETS=$(case $(uname -m) in \ - x86_64) echo 'linux-musl-openssl-3.0.x' ;; \ - aarch64) echo 'linux-musl-arm64-openssl-3.0.x' ;; \ - armv7l) echo 'linux-musl-arm-openssl-3.0.x' ;; \ - *) echo "Unsupported architecture: $(uname -m)" && exit 1 ;; \ - esac) && \ - npx prisma migrate deploy && \ - npm start"] \ No newline at end of file +CMD ["sh", "-c", "\ + export PRISMA_CLI_BINARY_TARGETS=$(case $(uname -m) in \ + x86_64) echo linux-musl-openssl-3.0.x ;; \ + aarch64) echo linux-musl-arm64-openssl-3.0.x ;; \ + armv7l) echo linux-musl-arm-openssl-3.0.x ;; \ + *) echo \"Unsupported architecture: $(uname -m)\" && exit 1 ;; \ + esac) && \ + npx prisma migrate deploy && \ + npm start"] \ No newline at end of file