tfrere commited on
Commit
f718c1a
·
1 Parent(s): 973863f

use mirror registery

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -2,6 +2,8 @@
2
  FROM node:18 as frontend-build
3
  WORKDIR /app
4
  COPY frontend/package*.json ./
 
 
5
  RUN npm install
6
  COPY frontend/ ./
7
 
@@ -50,6 +52,8 @@ COPY --from=frontend-build /app/server.js ./frontend/
50
 
51
  # Install frontend production dependencies
52
  WORKDIR /app/frontend
 
 
53
  RUN npm install --production
54
  WORKDIR /app
55
 
 
2
  FROM node:18 as frontend-build
3
  WORKDIR /app
4
  COPY frontend/package*.json ./
5
+ # Configurer le registre npm miroir pour éviter les erreurs 403
6
+ RUN npm config set registry https://registry.npmmirror.com/
7
  RUN npm install
8
  COPY frontend/ ./
9
 
 
52
 
53
  # Install frontend production dependencies
54
  WORKDIR /app/frontend
55
+ # Configurer le registre npm miroir pour éviter les erreurs 403
56
+ RUN npm config set registry https://registry.npmmirror.com/
57
  RUN npm install --production
58
  WORKDIR /app
59