Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAngular App Image with non root user #1250
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am creating docker image of my angular app using root user.But i want to change it to use non root user.Please help me doing this. Here is my docker file.
`FROM docker.com/node:latest as node
WORKDIR /app
COPY . .
RUN npm install
RUN npm run ng build -- --prod
#stage 2 : to run application
FROM docker.com/nginx:alpine
COPY --from=node /app/dist/MyApp /usr/share/nginx/html`