Skip to content

Commit eae49e6

Browse files
authored
Update Dockerfile
1 parent 65f9ce4 commit eae49e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
FROM node:22-alpine
2+
RUN apk add --no-cache curl
23

34
# Set the working directory
45
WORKDIR /app
@@ -20,5 +21,9 @@ ENV COMMIT_HASH=${COMMIT_HASH:-local}
2021
# Expose the port the app runs on
2122
EXPOSE 3000
2223

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+
2328
# Start the application
2429
CMD [ "npm", "run", "start" ]

0 commit comments

Comments
 (0)