understanding commited on
Commit
db7e2f9
·
verified ·
1 Parent(s): 5f916cf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -0
Dockerfile ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ---- Stage 2: Production ----
2
+ FROM node:lts-slim
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY package*.json ./
6
+ RUN npm install --production
7
+ COPY --from=builder /usr/src/app/dist ./dist
8
+
9
+ # ADD THIS LINE to create the sessions folder
10
+ RUN mkdir ./sessions
11
+
12
+ CMD [ "npm", "start" ]