From 22e03b4a9987bd56b1ed591715cbd04afa800a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Victor=20Negreiros?= Date: Sat, 9 Nov 2024 18:36:01 -0300 Subject: [PATCH] updates Dockeryzer.Dockerfile --- Dockeryzer.Dockerfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Dockeryzer.Dockerfile b/Dockeryzer.Dockerfile index 3eaf60c..8e33a66 100644 --- a/Dockeryzer.Dockerfile +++ b/Dockeryzer.Dockerfile @@ -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 @@ -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