Compare commits

...

3 Commits

Author SHA1 Message Date
8651a9aad1 Fix Nitro public assets in Coolify image
All checks were successful
CI / validate (push) Successful in 20m23s
CI / validate (pull_request) Successful in 17m14s
Co-authored-by: multica-agent <github@multica.ai>
2026-08-19 18:19:59 +05:00
860a5383b0 Merge pull request 'Fix Dockerfile healthcheck for Coolify PORT override' (#2) from agent/opencode-deepseek/1fa9d179 into main
All checks were successful
CI / validate (push) Successful in 23m18s
Reviewed-on: #2
2026-08-19 12:06:45 +00:00
62f01f1db3 Fix healthcheck to respect runtime PORT
Some checks failed
CI / validate (push) Successful in 26m55s
CI / validate (pull_request) Failing after 1m15s
Co-authored-by: multica-agent <github@multica.ai>
2026-08-19 17:00:39 +05:00

View File

@@ -61,10 +61,17 @@ COPY --from=build /app/apps/worker apps/worker
COPY --from=build /app/packages/shared packages/shared COPY --from=build /app/packages/shared packages/shared
COPY --from=build /app/packages/game-engine packages/game-engine COPY --from=build /app/packages/game-engine packages/game-engine
# Nitro 2.10 resolves file-backed public assets from the directory containing
# its split runtime chunk. Keep the generated output in its standard location
# and expose it at that runtime path without storing a second copy.
RUN ln -s ../../public apps/web/.output/server/chunks/public
EXPOSE 3000 EXPOSE 3000
# Coolify (and other hosts) override PORT at runtime; probe that port, not a
# hardcoded one.
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \ HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD node -e "fetch('http://127.0.0.1:3000/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))" CMD node -e "fetch('http://127.0.0.1:' + (process.env.PORT || 3000) + '/').then(r=>process.exit(r.ok?0:1)).catch(()=>process.exit(1))"
# The Nuxt web server reads its config through Nuxt runtimeConfig, which is # The Nuxt web server reads its config through Nuxt runtimeConfig, which is
# baked at build time and overridden at runtime only by NUXT_-prefixed env # baked at build time and overridden at runtime only by NUXT_-prefixed env