From 4a3de1fd9e12657b2fc3e7c4ae3341ccf6fc5ad9 Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Sat, 13 Apr 2024 18:14:09 -1000 Subject: [PATCH] Replace Bash with POSIX sh in Docker image --- Dockerfile | 2 +- entrypoint.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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