1
0
Fork 0
mirror of synced 2024-06-20 19:30:15 +12:00

add healthcheck to dockerfile

This commit is contained in:
Nick Sweeting 2021-02-17 18:24:38 -05:00
parent 084cf7ff51
commit 05dbb1c160

View file

@ -117,5 +117,8 @@ RUN /app/bin/docker_entrypoint.sh archivebox version
VOLUME "$DATA_DIR"
EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=20s --retries=15 \
CMD curl --silent 'http://localhost:8000/admin/login/' || exit 1
ENTRYPOINT ["dumb-init", "--", "/app/bin/docker_entrypoint.sh"]
CMD ["archivebox", "server", "0.0.0.0:8000"]