mirror of
https://github.com/xuthus83/pigallery2.git
synced 2024-11-03 21:04:03 +08:00
dockerfile entry update
This commit is contained in:
parent
e9498f8779
commit
6f4d1a071b
@ -23,8 +23,6 @@ ENV NODE_ENV=production \
|
||||
# flagging dockerized environemnt
|
||||
PI_DOCKER=true
|
||||
|
||||
# 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
|
||||
@ -33,3 +31,7 @@ VOLUME ["/app/data/config", "/app/data/db", "/app/data/images", "/app/data/tmp"]
|
||||
HEALTHCHECK --interval=40s --timeout=30s --retries=3 --start-period=60s \
|
||||
CMD wget --quiet --tries=1 --no-check-certificate --spider \
|
||||
http://localhost:80/heartbeat || exit 1
|
||||
|
||||
# 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"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user