From ce201d7bb733323fd0ea7c33eefa64f1729538e6 Mon Sep 17 00:00:00 2001 From: Saad Date: Tue, 3 Sep 2024 20:31:18 -0400 Subject: [PATCH] update --- Dockerfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index e34ebde..2a2bfe6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,14 +6,14 @@ WORKDIR /service COPY package*.json ./ COPY . . -# DEVELOPMENT - Enable Volume in docker-compose.yml -ENV NODE_ENV development -RUN npm install -CMD ["npx", "nodemon", "npm", "start"] +# DEVELOPMENT - Enable Volume in docker-compose.yml and comment Production +#ENV NODE_ENV development +#RUN npm install +#CMD ["npx", "nodemon", "npm", "start"] # PRODUCTION -#ENV NODE_ENV production -#RUN npm install --production -#RUN adduser --disabled-password myuser -#USER myuser -#CMD ["npm", "start"] +ENV NODE_ENV production +RUN npm install --production +RUN adduser --disabled-password myuser +USER myuser +CMD ["npm", "start"]