Added support for application to run in sub-paths while not breaking the Docker health check (#1728)

This commit is contained in:
Matt Scott 2023-12-11 08:38:36 -05:00 committed by GitHub
commit 8532ca5368
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,6 +92,6 @@ RUN chown ${USER}:${USER} ./configs /app && \
EXPOSE 80/tcp EXPOSE 80/tcp
USER ${USER} USER ${USER}
HEALTHCHECK CMD ["wget","--output-document=-","--quiet","--tries=1","http://127.0.0.1/"] HEALTHCHECK --interval=5s --timeout=5s --start-period=20s --retries=5 CMD wget --output-document=- --quiet --tries=1 http://127.0.0.1${SCRIPT_NAME:-/}
ENTRYPOINT ["entrypoint.sh"] ENTRYPOINT ["entrypoint.sh"]
CMD ["gunicorn","powerdnsadmin:create_app()"] CMD ["gunicorn","powerdnsadmin:create_app()"]