This commit is contained in:
+8
-3
@@ -1,13 +1,18 @@
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
# Use Alpine mirror
|
||||
RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories
|
||||
|
||||
# Install tzdata to support timezone settings
|
||||
RUN sed -i 's|https://dl-cdn.alpinelinux.org|https://mirror.leaseweb.net|g' /etc/apk/repositories \
|
||||
&& apk add --no-cache tzdata
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
# Set the timezone to Asia/Tehran
|
||||
|
||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
||||
|
||||
# Configure npm registry mirror
|
||||
ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/
|
||||
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
|
||||
|
||||
WORKDIR /build
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
Reference in New Issue
Block a user