mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Revert "update npm time out"
This reverts commit 38a7b1acf1a445ea62dcad5b60e9624733976b78.
This commit is contained in:
committed by
Akhil Mohan
parent
27fd857120
commit
aa4d9ad267
@@ -14,8 +14,6 @@ WORKDIR /app
|
|||||||
COPY frontend/package.json frontend/package-lock.json frontend/next.config.js ./
|
COPY frontend/package.json frontend/package-lock.json frontend/next.config.js ./
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN npm config set fetch-retry-mintimeout 20000
|
|
||||||
RUN npm config set fetch-retry-maxtimeout 120000
|
|
||||||
RUN npm ci --only-production --ignore-scripts
|
RUN npm ci --only-production --ignore-scripts
|
||||||
|
|
||||||
# Rebuild the source code only when needed
|
# Rebuild the source code only when needed
|
||||||
@@ -71,14 +69,10 @@ RUN addgroup --system --gid 1001 nodejs \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY backend-pg/package*.json ./
|
COPY backend-pg/package*.json ./
|
||||||
RUN npm config set fetch-retry-mintimeout 20000
|
|
||||||
RUN npm config set fetch-retry-maxtimeout 120000
|
|
||||||
RUN npm ci --only-production
|
RUN npm ci --only-production
|
||||||
|
|
||||||
COPY /backend-pg .
|
COPY /backend-pg .
|
||||||
COPY --chown=non-root-user:nodejs standalone-entrypoint.sh standalone-entrypoint.sh
|
COPY --chown=non-root-user:nodejs standalone-entrypoint.sh standalone-entrypoint.sh
|
||||||
RUN npm config set fetch-retry-mintimeout 20000
|
|
||||||
RUN npm config set fetch-retry-maxtimeout 120000
|
|
||||||
RUN npm i -D tsconfig-paths
|
RUN npm i -D tsconfig-paths
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
@@ -88,8 +82,6 @@ FROM base AS backend-runner
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
COPY backend-pg/package*.json ./
|
COPY backend-pg/package*.json ./
|
||||||
RUN npm config set fetch-retry-mintimeout 20000
|
|
||||||
RUN npm config set fetch-retry-maxtimeout 120000
|
|
||||||
RUN npm ci --only-production
|
RUN npm ci --only-production
|
||||||
|
|
||||||
COPY --from=backend-build /app .
|
COPY --from=backend-build /app .
|
||||||
|
|||||||
Reference in New Issue
Block a user