File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -225,8 +225,7 @@ RUN npm run build
225225
226226# Make sure the alpine version is the same as in the build stage
227227FROM alpine:3.16
228- RUN apk add --no-cache libstdc++
229- RUN apk add --no-cache dumb-init
228+ RUN apk add --no-cache libstdc++ dumb-init
230229RUN addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node
231230
232231COPY --from=builder /usr/local/bin/node /usr/local/bin/
@@ -239,7 +238,7 @@ COPY --from=builder /build-stage/dist ./dist
239238
240239RUN chown -R node:node ./
241240USER node
242- # Run with dumb-init to not start node with PID=1, since Node.js was not designed to run as PID 1
241+ # Run with dumb-init to not start node with PID=1, since Node.js was not designed to run as PID 1
243242CMD ["dumb-init" , "node" , "dist/index.js" ]
244243```
245244
You can’t perform that action at this time.
0 commit comments