Skip to content

Commit d0dd56e

Browse files
committed
fix: use PORT rather than hardcoding 3000
1 parent e064b60 commit d0dd56e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,6 @@ COPY --from=withpackage --chown=node:node /usr/src/app/core/public ./core/public
132132
# needed to set the database url correctly based on PGHOST variables
133133
COPY --from=withpackage --chown=node:node /usr/src/app/core/.env.docker ./core/.env
134134

135-
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD curl -f http://localhost:3000/api/health || exit 1
135+
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 CMD ["curl", "-f", "http://localhost:${PORT}/api/health"]
136136

137137
CMD ["node", "core/server.js"]

0 commit comments

Comments
 (0)