diff --git a/Dockerfile b/Dockerfile index e4d6a1e4..36c501d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,6 +43,6 @@ LABEL org.opencontainers.image.description "Lysand Server docker image" # CD to app WORKDIR /app ENV NODE_ENV=production -ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ] +ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ] # Run migrations and start the server CMD [ "start" ] diff --git a/entrypoint.sh b/entrypoint.sh index 299ad8dd..46cef185 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # This script is a wrapper for the main server, CLI and Prisma binaries. # Commands: @@ -6,7 +6,7 @@ # - `cli`: Starts the CLI, sends all arguments to it # Exit immediately if a command exits with a non-zero status. -set -euo pipefail +set -euo cd /app/dist