FROM node:14-alpine
RUN deluser --remove-home node \
&& addgroup -S node -g 999 \
&& adduser -S -G node -u 999 node
WORKDIR /app
RUN chown -R node /app
USER node
COPY package.json .
RUN npm i
COPY . .
VOLUME [ "app/node_modules" ]
EXPOSE 4200
CMD [ "npm", "start" ]
The text was updated successfully, but these errors were encountered:
ampmonteiro
changed the title
Alpine "Best Practice", error addgroup: gid '999' in use
Alpine "Best Practice", error "addgroup: gid '999' in use "
Aug 11, 2021
Environment
Expected Behavior
I need to change uid/gid , i i use the follow command from the docs :
Current Behavior
The command not working because of follow error;
Steps to Reproduce
using the follow dockerfile config:
The text was updated successfully, but these errors were encountered: