File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ RUN mix release
7171FROM ${RUNNER_IMAGE} AS final
7272
7373RUN apt-get update \
74- && apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates \
74+ && apt-get install -y --no-install-recommends libstdc++6 openssl libncurses6 locales ca-certificates curl \
7575 && rm -rf /var/lib/apt/lists/*
7676
7777# Set the locale
@@ -98,4 +98,9 @@ USER nobody
9898# above and adding an entrypoint. See https://github.com/krallin/tini for details
9999# ENTRYPOINT ["/tini", "--"]
100100
101- CMD ["/app/bin/server" ]
101+ EXPOSE 4000
102+
103+ HEALTHCHECK --interval=30s --timeout=3s --start-period=5s \
104+ CMD curl -f http://localhost:4000/ || exit 1
105+
106+ CMD ["sh" , "-c" , "/app/bin/migrate && /app/bin/server" ]
You can’t perform that action at this time.
0 commit comments