Skip to content

Commit 0f12af9

Browse files
committed
Dockerfile
1 parent 3e4dd3d commit 0f12af9

File tree

2 files changed

+1367
-3
lines changed

2 files changed

+1367
-3
lines changed

Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ WORKDIR /src
99
# If you are building your code for production
1010
# RUN npm ci --only=production
1111

12+
COPY ./package*.json /src/package*.json
13+
14+
RUN npm install
15+
1216
# Bundle app source
1317
COPY ./server /src/server
1418
COPY ./public /src/public
15-
COPY ./package.json /src/package.json
1619
COPY ./server.js /src/server.js
1720
COPY ./.env /src/.env
1821

19-
RUN npm install
20-
2122

2223
EXPOSE 6001
2324
CMD [ "npm", "start" ]

0 commit comments

Comments
 (0)