Skip to content

Commit ce201d7

Browse files
committed
update
1 parent 59ed6ee commit ce201d7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ WORKDIR /service
66
COPY package*.json ./
77
COPY . .
88

9-
# DEVELOPMENT - Enable Volume in docker-compose.yml
10-
ENV NODE_ENV development
11-
RUN npm install
12-
CMD ["npx", "nodemon", "npm", "start"]
9+
# DEVELOPMENT - Enable Volume in docker-compose.yml and comment Production
10+
#ENV NODE_ENV development
11+
#RUN npm install
12+
#CMD ["npx", "nodemon", "npm", "start"]
1313

1414
# PRODUCTION
15-
#ENV NODE_ENV production
16-
#RUN npm install --production
17-
#RUN adduser --disabled-password myuser
18-
#USER myuser
19-
#CMD ["npm", "start"]
15+
ENV NODE_ENV production
16+
RUN npm install --production
17+
RUN adduser --disabled-password myuser
18+
USER myuser
19+
CMD ["npm", "start"]

0 commit comments

Comments
 (0)