diff options
author | kytwb <412895+kytwb@users.noreply.github.com> | 2021-12-20 00:06:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 00:06:00 +0100 |
commit | 555decbe327e6b6add472f54ccee8515537bd274 (patch) | |
tree | f7dd1bd2fc8a15518c87afaecb25ba172968675e | |
parent | Enable saving empty workspaces (diff) | |
parent | fix(dockerfile): Healthcheck parameters (diff) | |
download | ferdium-server-555decbe327e6b6add472f54ccee8515537bd274.tar.gz ferdium-server-555decbe327e6b6add472f54ccee8515537bd274.tar.zst ferdium-server-555decbe327e6b6add472f54ccee8515537bd274.zip |
Fix container taking 5 minutes before being healthy
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -20,7 +20,7 @@ RUN ["apk", "add", "--no-cache", "sqlite-libs", "curl", "su-exec"] | |||
20 | COPY --from=build /server-build /app | 20 | COPY --from=build /server-build /app |
21 | RUN ["npm", "i", "-g", "@adonisjs/cli"] | 21 | RUN ["npm", "i", "-g", "@adonisjs/cli"] |
22 | 22 | ||
23 | HEALTHCHECK --interval=5m --timeout=3s CMD curl -sSf http://localhost:${PORT}/health | 23 | HEALTHCHECK --start-period=5s --interval=30s --retries=5 --timeout=3s CMD curl -sSf http://localhost:${PORT}/health |
24 | 24 | ||
25 | COPY docker/entrypoint.sh /entrypoint.sh | 25 | COPY docker/entrypoint.sh /entrypoint.sh |
26 | COPY docker/.env /app/.env | 26 | COPY docker/.env /app/.env |