Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
saadshams committed Sep 4, 2024
1 parent 59ed6ee commit ce201d7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit ce201d7

Please sign in to comment.