aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar kytwb <412895+kytwb@users.noreply.github.com>2021-12-20 00:06:00 +0100
committerLibravatar GitHub <noreply@github.com>2021-12-20 00:06:00 +0100
commit555decbe327e6b6add472f54ccee8515537bd274 (patch)
treef7dd1bd2fc8a15518c87afaecb25ba172968675e
parentEnable saving empty workspaces (diff)
parentfix(dockerfile): Healthcheck parameters (diff)
downloadferdium-server-555decbe327e6b6add472f54ccee8515537bd274.tar.gz
ferdium-server-555decbe327e6b6add472f54ccee8515537bd274.tar.zst
ferdium-server-555decbe327e6b6add472f54ccee8515537bd274.zip
Fix container taking 5 minutes before being healthy
-rw-r--r--Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index ad057dc..57e3044 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -20,7 +20,7 @@ RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl", "su-exec"]
20COPY --from=build /server-build /app 20COPY --from=build /server-build /app
21RUN ["npm", "i", "-g", "@adonisjs/cli"] 21RUN ["npm", "i", "-g", "@adonisjs/cli"]
22 22
23HEALTHCHECK --interval=5m --timeout=3s CMD curl -sSf http://localhost:${PORT}/health 23HEALTHCHECK --start-period=5s --interval=30s --retries=5 --timeout=3s CMD curl -sSf http://localhost:${PORT}/health
24 24
25COPY docker/entrypoint.sh /entrypoint.sh 25COPY docker/entrypoint.sh /entrypoint.sh
26COPY docker/.env /app/.env 26COPY docker/.env /app/.env