mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
Adding curl and healthcheck directive to HGE image
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/7717 GitOrigin-RevId: 42bf2f85bf198d654017c892bd810ba267df9d50
This commit is contained in:
parent
59a1fc2102
commit
fc4a86f6d8
@ -1,4 +1,4 @@
|
||||
# DATE VERSION: 2023-01-23
|
||||
# DATE VERSION: 2023-01-31
|
||||
# Modify the above date version (YYYY-MM-DD) if you want to rebuild the image
|
||||
FROM ubuntu:focal-20221130
|
||||
|
||||
@ -40,8 +40,9 @@ RUN set -ex; \
|
||||
find /usr/bin -name 'pg*' -not -path '/usr/bin/pg_dump' -delete
|
||||
|
||||
# Cleanup unwanted files and packages
|
||||
# Note: curl is not removed, it's required to support health checks
|
||||
RUN set -ex; \
|
||||
apt-get -y remove curl gnupg2; \
|
||||
apt-get -y remove gnupg2; \
|
||||
apt-get -y auto-remove; \
|
||||
apt-get -y clean; \
|
||||
rm -rf /var/lib/apt/lists/* /usr/share/doc/ /usr/share/man/ /usr/share/locale/
|
||||
|
@ -7,4 +7,6 @@ ENV HGE_BINARY ${HGE_BINARY_NAME}
|
||||
COPY rootfs/bin/ /bin/
|
||||
COPY rootfs/srv/ /srv/
|
||||
|
||||
HEALTHCHECK --start-period=10s CMD curl -f http://localhost:8080/healthz || exit 1
|
||||
|
||||
CMD "${HGE_BINARY}" serve
|
||||
|
Loading…
Reference in New Issue
Block a user