From ead242fe7bb865b8fb8c7e72ca0635bbfe90dc32 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 27 Jun 2026 10:23:06 +0330 Subject: [PATCH] mirror --- Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71d83cb..d243675 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,16 @@ -FROM node:14-alpine AS base +FROM docker-mirror.liara.ir/library/node:14-alpine AS base -RUN apk add --no-cache tzdata +RUN ALPINE_VERSION=$(cat /etc/alpine-release | cut -d'.' -f1-2) && \ + echo "https://linux-mirror.liara.ir/repository/alpine/v${ALPINE_VERSION}/main" > /etc/apk/repositories && \ + echo "https://linux-mirror.liara.ir/repository/alpine/v${ALPINE_VERSION}/community" >> /etc/apk/repositories -# Set the timezone to Asia/Tehran -RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone +ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/ +ENV NODE_OPTIONS=--openssl-legacy-provider + +# 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 FROM base AS deps WORKDIR /temp-deps