Skip to content

Commit 0317655

Browse files
authored
Merge pull request #102 from rsumner/fix-docker-curl-install
curl install in runner needs root
2 parents 0e64f74 + 55428bf commit 0317655

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
@@ -21,6 +21,7 @@ RUN npm prune --production
2121
### Runtime stage
2222
FROM node:20-alpine AS runtime
2323
ENV NODE_ENV=production
24+
RUN apk add --no-cache curl
2425

2526
WORKDIR /app
2627

@@ -46,7 +47,6 @@ USER node
4647
EXPOSE 5150 5151
4748

4849
# Healthcheck: perform lightweight HTTP request to ensure app responding
49-
RUN apk add --no-cache curl
5050
HEALTHCHECK --interval=30s --timeout=5s --start-period=45s --retries=5 \
5151
CMD curl -fsS http://127.0.0.1:5150/config/appVersion?health || exit 1
5252

0 commit comments

Comments
 (0)