Install npm packages from npmmirror so Dokploy is not stuck.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+8
-3
@@ -5,13 +5,18 @@ WORKDIR /app
|
|||||||
COPY package.json package-lock.json ./
|
COPY package.json package-lock.json ./
|
||||||
COPY scripts ./scripts
|
COPY scripts ./scripts
|
||||||
|
|
||||||
RUN npm config set fetch-retry-mintimeout 10000 \
|
ENV NPM_CONFIG_REGISTRY=https://registry.npmmirror.com
|
||||||
|
RUN npm config set registry https://registry.npmmirror.com \
|
||||||
|
&& npm config set replace-registry-host always \
|
||||||
|
&& npm config set fetch-retry-mintimeout 10000 \
|
||||||
&& npm config set fetch-retry-maxtimeout 120000 \
|
&& npm config set fetch-retry-maxtimeout 120000 \
|
||||||
&& npm config set fetch-timeout 120000 \
|
&& npm config set fetch-timeout 120000 \
|
||||||
&& npm config set fetch-retries 5
|
&& npm config set fetch-retries 5 \
|
||||||
|
&& npm config set progress true \
|
||||||
|
&& npm config set loglevel info
|
||||||
|
|
||||||
ENV NODE_ENV=development
|
ENV NODE_ENV=development
|
||||||
RUN npm ci --include=dev --foreground-scripts
|
RUN npm ci --include=dev --foreground-scripts --no-audit --no-fund --registry=https://registry.npmmirror.com
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user