From ce233b563f2c9c99c6407a2663b71d7a0c0f4973 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 6 Sep 2020 20:21:25 +0200 Subject: [PATCH] adding shebang to the docker entry script --- docker/alpine/Dockerfile.build | 2 +- docker/debian-stretch/Dockerfile.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/alpine/Dockerfile.build b/docker/alpine/Dockerfile.build index 827c0fc8..b4de26a1 100644 --- a/docker/alpine/Dockerfile.build +++ b/docker/alpine/Dockerfile.build @@ -28,7 +28,7 @@ ENV NODE_ENV=production \ # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible # This trick is needed as entrypoint in exec form does not support ENV variables # and in shell form ENV variables were not properly passed to pigallry2 -RUN echo "node ./src/backend/index --expose-gc --config-path=${CONFIG_FILE}" > ./entrypoint.sh && \ +RUN echo "#!/usr/bin/env node ./src/backend/index --expose-gc --config-path=${CONFIG_FILE}" > ./entrypoint.sh && \ chmod +x ./entrypoint.sh EXPOSE 80 diff --git a/docker/debian-stretch/Dockerfile.build b/docker/debian-stretch/Dockerfile.build index 733c8ad9..45b9a383 100644 --- a/docker/debian-stretch/Dockerfile.build +++ b/docker/debian-stretch/Dockerfile.build @@ -26,7 +26,7 @@ ENV NODE_ENV=production \ # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible # This trick is needed as entrypoint in exec form does not support ENV variables # and in shell form ENV variables were not properly passed to pigallry2 -RUN echo "node ./src/backend/index --expose-gc --config-path=${CONFIG_FILE}" > ./entrypoint.sh && \ +RUN echo "#!/usr/bin/env node ./src/backend/index --expose-gc --config-path=${CONFIG_FILE}" > ./entrypoint.sh && \ chmod +x ./entrypoint.sh EXPOSE 80