Use the public npm registry so Dokploy can install packages.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-4
@@ -5,15 +5,13 @@ WORKDIR /app
|
||||
COPY package.json package-lock.json ./
|
||||
COPY scripts ./scripts
|
||||
|
||||
RUN npm config set registry https://mirror2.chabokan.net/npm/ \
|
||||
&& npm config set replace-registry-host npmjs \
|
||||
&& npm config set fetch-retry-mintimeout 10000 \
|
||||
RUN npm config set fetch-retry-mintimeout 10000 \
|
||||
&& npm config set fetch-retry-maxtimeout 120000 \
|
||||
&& npm config set fetch-timeout 120000 \
|
||||
&& npm config set fetch-retries 5
|
||||
|
||||
ENV NODE_ENV=development
|
||||
RUN npm ci --include=dev --foreground-scripts --registry=https://mirror2.chabokan.net/npm/
|
||||
RUN npm ci --include=dev --foreground-scripts
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user