This commit is contained in:
alirehmani
2024-05-10 18:45:00 +05:00
parent 2b47dccc66
commit 2810f480b4
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ COPY package*.json ./
# npm ci is used instead of npm install when you want a clean, exact installation # npm ci is used instead of npm install when you want a clean, exact installation
#RUN npm ci --verbose #RUN npm ci --verbose
# Try to install dependencies with a retry mechanism # Try to install dependencies with a retry mechanism
RUN for i in 1 2 3; do npm ci --verbose && break || sleep 15; done #RUN for i in 1 2 3; do npm ci --verbose && break || sleep 15; done
# Copy the rest of your application code # Copy the rest of your application code
COPY . . COPY . .

View File

@@ -1,4 +1,4 @@
ARG NODE_VERSION=21.4.0 ARG NODE_VERSION=18.20.0
ARG ALPINE_VERSION=3.19.0 ARG ALPINE_VERSION=3.19.0
FROM node:${NODE_VERSION}-alpine AS node FROM node:${NODE_VERSION}-alpine AS node