1
0
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:
Patrik J. Braun 2020-09-06 14:53:38 +02:00
parent e9498f8779
commit 6f4d1a071b

View File

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