Merge two commands in example dockerfile
This commit is contained in:
parent
999efab646
commit
0c3d9de40c
|
@ -225,8 +225,7 @@ RUN npm run build
|
||||||
|
|
||||||
# Make sure the alpine version is the same as in the build stage
|
# Make sure the alpine version is the same as in the build stage
|
||||||
FROM alpine:3.16
|
FROM alpine:3.16
|
||||||
RUN apk add --no-cache libstdc++
|
RUN apk add --no-cache libstdc++ dumb-init
|
||||||
RUN apk add --no-cache dumb-init
|
|
||||||
RUN addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node
|
RUN addgroup -g 1000 node && adduser -u 1000 -G node -s /bin/sh -D node
|
||||||
|
|
||||||
COPY --from=builder /usr/local/bin/node /usr/local/bin/
|
COPY --from=builder /usr/local/bin/node /usr/local/bin/
|
||||||
|
|
Loading…
Reference in New Issue