Skip to content

Commit

Permalink
updates Dockeryzer.Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
joaovictornsv committed Nov 9, 2024
1 parent c9b8b29 commit 22e03b4
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Dockeryzer.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
# Customization suggestion: You can change the base image to a different version of Node.js, such as 'node:slim' or 'node:alpine', if necessary.
FROM node:alpine AS builder

# Set the 'node:node' user to run subsequent commands, ensuring a secure and restricted environment.
USER node:node

# Set the working directory for the application in the build phase.
# Customization suggestion: If your application's working directory is different, you can modify it by changing the value of the WORKDIR variable.
WORKDIR /workspace/app
Expand All @@ -23,9 +20,6 @@ FROM node:alpine
# Copy the compiled files from the build phase to the '/app' directory in the container.
COPY --from=builder --chown=node:node /workspace/app/dist /app

# Set the default user to run subsequent commands.
USER node

# Set the working directory for the application in the production phase.
WORKDIR /app

Expand Down

0 comments on commit 22e03b4

Please sign in to comment.