Skip to content

Commit 709d552

Browse files
ruggi99sweatybridge
authored andcommitted
Update Dockerfile
Co-authored-by: Han Qiao <[email protected]>
1 parent e4de56d commit 709d552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ ENV PG_META_PORT=8080
1616
CMD ["npm", "run", "start"]
1717
EXPOSE 8080
1818
# --start-period defaults to 0s, but can't be set to 0s (to be explicit) by now
19-
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD curl -f http://localhost:8080/health || exit 1
19+
HEALTHCHECK --interval=5s --timeout=5s --retries=3 CMD node -e "require('http').get('http://localhost:8080/health', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})"

0 commit comments

Comments
 (0)