1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

refactoring docker build entrypoint

This commit is contained in:
Patrik J. Braun 2020-02-08 13:18:37 +01:00
parent 6be6dbf676
commit 2f982ba8e3
2 changed files with 8 additions and 10 deletions

View File

@ -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

View File

@ -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