From 2f982ba8e3d5b3180fbaf7306c170e536d97dad7 Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sat, 8 Feb 2020 13:18:37 +0100 Subject: [PATCH] refactoring docker build entrypoint --- docker/alpine/Dockerfile.build | 9 ++++----- docker/debian-stretch/Dockerfile.build | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/docker/alpine/Dockerfile.build b/docker/alpine/Dockerfile.build index 9b052bfc..ed4ebac6 100644 --- a/docker/alpine/Dockerfile.build +++ b/docker/alpine/Dockerfile.build @@ -24,11 +24,10 @@ ENV NODE_ENV=production \ default-Server-Media-tempFolder=/app/data/tmp \ # flagging dockerized environemnt PI_DOCKER=true -# command line arg orverride the config.json with these settings -ENTRYPOINT ["node", "./src/backend/index", \ - # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible - "--expose-gc", \ - "--config-path=${CONFIG_FILE}"] + + # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible +ENTRYPOINT node ./src/backend/index --expose-gc --config-path=$CONFIG_FILE + EXPOSE 80 RUN apk add --update-cache --repository https://alpine.global.ssl.fastly.net/alpine/v3.11/community/ \ vips ffmpeg diff --git a/docker/debian-stretch/Dockerfile.build b/docker/debian-stretch/Dockerfile.build index bf501a13..9f0e52d6 100644 --- a/docker/debian-stretch/Dockerfile.build +++ b/docker/debian-stretch/Dockerfile.build @@ -22,11 +22,10 @@ ENV NODE_ENV=production \ default-Server-Media-tempFolder=/app/data/tmp \ # flagging dockerized environemnt PI_DOCKER=true -# command line arg orverride the config.json with these settings -ENTRYPOINT ["node", "./src/backend/index", \ - # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible - "--expose-gc", \ - "--config-path=${CONFIG_FILE}"] + + # after a extensive job (like video converting), pigallery calls gc, to clean up everthing as fast as possible +ENTRYPOINT node ./src/backend/index --expose-gc --config-path=$CONFIG_FILE + EXPOSE 80 RUN apt-get update && apt-get install -y ffmpeg COPY --from=builder /app /app