Trần Viết Sơn commited on
Commit
3daf62a
·
1 Parent(s): 8924841

fix docker 2

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -1
  2. backend/Dockerfile +1 -1
Dockerfile CHANGED
@@ -7,6 +7,8 @@ WORKDIR /app
7
  # Copy package.json and package-lock.json
8
  COPY backend/package*.json ./
9
 
 
 
10
  # Install dependencies
11
  RUN npm install
12
 
@@ -25,4 +27,4 @@ EXPOSE 3000
25
 
26
  # Command to run the application
27
  ENTRYPOINT ["./entrypoint.sh"]
28
- CMD ["npm", "run", "start"]
 
7
  # Copy package.json and package-lock.json
8
  COPY backend/package*.json ./
9
 
10
+ RUN npm install -g npm@10.9.0
11
+
12
  # Install dependencies
13
  RUN npm install
14
 
 
27
 
28
  # Command to run the application
29
  ENTRYPOINT ["./entrypoint.sh"]
30
+ CMD ["npm", "run", "start:prod"]
backend/Dockerfile CHANGED
@@ -26,4 +26,4 @@ EXPOSE 3000
26
 
27
  # Command to run the application
28
  ENTRYPOINT ["./entrypoint.sh"]
29
- CMD ["npm", "run", "start"]
 
26
 
27
  # Command to run the application
28
  ENTRYPOINT ["./entrypoint.sh"]
29
+ CMD ["npm", "run", "start:prod"]