Skip to content

Commit 4a9e619

Browse files
committed
fix: remove ping group and iputils from container so GID 999 is available
1 parent 1b4ac2a commit 4a9e619

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ RUN NODE_ENV=build npm run build
1818
FROM node:22-alpine AS runner
1919

2020
# Delete default node user first (combine with system upgrade package installation to reduce layers)
21-
RUN deluser --remove-home node && apk upgrade -a && apk add --no-cache su-exec curl shadow
21+
RUN deluser --remove-home node && apk upgrade && apk add --no-cache su-exec curl shadow
22+
# Delete ping group and utility as this shouldnt be needed and conflicts with GID 999
23+
RUN delgroup ping && apk del iputils
2224

2325
WORKDIR /app
2426

0 commit comments

Comments
 (0)