We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65f9ce4 commit eae49e6Copy full SHA for eae49e6
Dockerfile
@@ -1,4 +1,5 @@
1
FROM node:22-alpine
2
+RUN apk add --no-cache curl
3
4
# Set the working directory
5
WORKDIR /app
@@ -20,5 +21,9 @@ ENV COMMIT_HASH=${COMMIT_HASH:-local}
20
21
# Expose the port the app runs on
22
EXPOSE 3000
23
24
+# Healthcheck using curl
25
+HEALTHCHECK --interval=2s --timeout=10s --start-period=5s --retries=5 \
26
+ CMD curl -f http://localhost:3000/status || exit 1
27
+
28
# Start the application
29
CMD [ "npm", "run", "start" ]
0 commit comments