We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59ed6ee commit ce201d7Copy full SHA for ce201d7
Dockerfile
@@ -6,14 +6,14 @@ WORKDIR /service
6
COPY package*.json ./
7
COPY . .
8
9
-# DEVELOPMENT - Enable Volume in docker-compose.yml
10
-ENV NODE_ENV development
11
-RUN npm install
12
-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"]
13
14
# PRODUCTION
15
-#ENV NODE_ENV production
16
-#RUN npm install --production
17
-#RUN adduser --disabled-password myuser
18
-#USER myuser
19
-#CMD ["npm", "start"]
+ENV NODE_ENV production
+RUN npm install --production
+RUN adduser --disabled-password myuser
+USER myuser
+CMD ["npm", "start"]
0 commit comments