We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15088d4 commit 06575b5Copy full SHA for 06575b5
Dockerfile
@@ -63,7 +63,7 @@ RUN mix release
63
FROM ${RUNNER_IMAGE}
64
65
RUN apt-get update -y && \
66
- apt-get install -y libstdc++6 openssl libncurses5 locales ca-certificates \
+ apt-get install -y libstdc++6 openssl libncurses5 locales wget ca-certificates \
67
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
68
69
# Set the locale
@@ -89,4 +89,9 @@ USER nobody
89
# above and adding an entrypoint. See https://github.com/krallin/tini for details
90
# ENTRYPOINT ["/tini", "--"]
91
92
+EXPOSE 8080
93
+
94
+HEALTHCHECK --interval=5s --timeout=10s --start-period=5s --retries=3 \
95
+ CMD "wget -O http://localhost:8080/health/live 2> /dev/null"
96
97
CMD ["/app/bin/server"]
0 commit comments