Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding HEALTHCHECK for docker container #251

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ RUN \
libglib2.0-0 libjpeg-turbo8 libpng12-0 libopenexr22 \
libwebp5 libtiff5 libgif7 libexif12 libxml2 libpoppler-glib8 \
libmagickwand-6.q16-2 libpango1.0-0 libmatio2 libopenslide0 \
libgsf-1-114 fftw3 liborc-0.4 librsvg2-2 libcfitsio2 && \
libgsf-1-114 fftw3 liborc-0.4 librsvg2-2 libcfitsio2 curl && \
# Clean up
apt-get autoremove -y && \
apt-get autoclean && \
Expand All @@ -95,6 +95,8 @@ COPY --from=builder /etc/ssl/certs /etc/ssl/certs
# Server port to listen
ENV PORT 9000

HEALTHCHECK --retries=10 CMD curl --fail http://localhost:$PORT/health

# Run the entrypoint command by default when the container starts.
ENTRYPOINT ["bin/imaginary"]

Expand Down