Replace Bash with POSIX sh in Docker image

This commit is contained in:
Jesse Wierzbinski 2024-04-13 18:14:09 -10:00
parent 5737ed43cb
commit 4a3de1fd9e
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View file

@ -43,6 +43,6 @@ LABEL org.opencontainers.image.description "Lysand Server docker image"
# CD to app # CD to app
WORKDIR /app WORKDIR /app
ENV NODE_ENV=production ENV NODE_ENV=production
ENTRYPOINT [ "/bin/bash", "/app/entrypoint.sh" ] ENTRYPOINT [ "/bin/sh", "/app/entrypoint.sh" ]
# Run migrations and start the server # Run migrations and start the server
CMD [ "start" ] CMD [ "start" ]

View file

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/sh
# This script is a wrapper for the main server, CLI and Prisma binaries. # This script is a wrapper for the main server, CLI and Prisma binaries.
# Commands: # Commands:
@ -6,7 +6,7 @@
# - `cli`: Starts the CLI, sends all arguments to it # - `cli`: Starts the CLI, sends all arguments to it
# Exit immediately if a command exits with a non-zero status. # Exit immediately if a command exits with a non-zero status.
set -euo pipefail set -euo
cd /app/dist cd /app/dist