Skip to content

Commit

Permalink
Removed the redundant nonroot user (#1974)
Browse files Browse the repository at this point in the history
  • Loading branch information
sh16011993 authored May 29, 2023
1 parent 99e1f66 commit e827b1c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 12 deletions.
3 changes: 0 additions & 3 deletions sources/packages/backend/apps/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,5 @@ RUN npm run build api
# Exposing application port
EXPOSE ${PORT}

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

# Entry point
CMD [ "npm", "run", "start:prod:api" ]
3 changes: 0 additions & 3 deletions sources/packages/backend/apps/db-migrations/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,5 @@ COPY tsconfig.json ./
COPY tsconfig.build.json ./
COPY env-setup.js ./

# Set the non-root user
USER 1001

# Entry point
CMD [ "npm", "run", "start:prod:db-migrations" ]
3 changes: 0 additions & 3 deletions sources/packages/backend/apps/queue-consumers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ COPY ./libs ./libs
# Building app
RUN npm run build queue-consumers

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

# Entry point
CMD [ "npm", "run", "start:prod:queue-consumers" ]
3 changes: 0 additions & 3 deletions sources/packages/backend/apps/workers/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ COPY ./libs ./libs
# Building app
RUN npm run build workers

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

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

0 comments on commit e827b1c

Please sign in to comment.