This commit is contained in:
+3
-7
@@ -7,13 +7,9 @@ FROM node:22-alpine AS base
|
||||
RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories
|
||||
|
||||
# Configure npm registry mirror (Liara)
|
||||
ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com
|
||||
RUN npm config set registry https://mirror-npm.runflare.com
|
||||
#ENV NPM_CONFIG_REGISTRY=https://mirror-npm.runflare.com
|
||||
#RUN npm config set registry https://mirror-npm.runflare.com
|
||||
|
||||
# Install tzdata to support timezone settings
|
||||
RUN apk add --no-cache tzdata && \
|
||||
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \
|
||||
echo "Asia/Tehran" > /etc/timezone
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -22,7 +18,7 @@ WORKDIR /app
|
||||
# --------------------
|
||||
FROM base AS deps
|
||||
|
||||
RUN apk add --no-cache libc6-compat git
|
||||
# RUN apk add --no-cache libc6-compat git
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci --legacy-peer-deps --ignore-scripts --loglevel info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user