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