Docker startup command fix

This commit is contained in:
headlessdev 2025-04-30 18:59:05 +02:00
parent 1b75d95be4
commit 1ad84e7ea3

View File

@ -42,12 +42,12 @@ RUN npm prune --production
EXPOSE 3000 EXPOSE 3000
# Dynamically set PRISMA_CLI_BINARY_TARGETS based on runtime architecture and start # Dynamically set PRISMA_CLI_BINARY_TARGETS based on runtime architecture and start
CMD ["sh", "-c", \ CMD ["sh", "-c", "\
"export PRISMA_CLI_BINARY_TARGETS=$(case $(uname -m) in \ export PRISMA_CLI_BINARY_TARGETS=$(case $(uname -m) in \
x86_64) echo 'linux-musl-openssl-3.0.x' ;; \ x86_64) echo linux-musl-openssl-3.0.x ;; \
aarch64) echo 'linux-musl-arm64-openssl-3.0.x' ;; \ aarch64) echo linux-musl-arm64-openssl-3.0.x ;; \
armv7l) echo 'linux-musl-arm-openssl-3.0.x' ;; \ armv7l) echo linux-musl-arm-openssl-3.0.x ;; \
*) echo "Unsupported architecture: $(uname -m)" && exit 1 ;; \ *) echo \"Unsupported architecture: $(uname -m)\" && exit 1 ;; \
esac) && \ esac) && \
npx prisma migrate deploy && \ npx prisma migrate deploy && \
npm start"] npm start"]