Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#1966 - Update user to nonroot user 1001 #1967

Merged
merged 1 commit into from
May 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sources/packages/backend/apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN npm run build api
EXPOSE ${PORT}

# Executing the image with a non-root user.
USER node
USER 1001

# Entry point
CMD [ "npm", "run", "start:prod:api" ]
2 changes: 1 addition & 1 deletion sources/packages/backend/apps/db-migrations/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ COPY tsconfig.build.json ./
COPY env-setup.js ./

# Set the non-root user
USER node
USER 1001

# Entry point
CMD [ "npm", "run", "start:prod:db-migrations" ]
2 changes: 1 addition & 1 deletion sources/packages/backend/apps/queue-consumers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY ./libs ./libs
RUN npm run build queue-consumers

# Executing the image with a non-root user.
USER node
USER 1001

# Entry point
CMD [ "npm", "run", "start:prod:queue-consumers" ]
2 changes: 1 addition & 1 deletion sources/packages/backend/apps/workers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ COPY ./libs ./libs
RUN npm run build workers

# Executing the image with a non-root user.
USER node
USER 1001

# Entry point
CMD [ "npm", "run", "start:prod:workers" ]