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:
parent
6be6dbf676
commit
2f982ba8e3
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user