+11
-4
@@ -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
|
ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/
|
||||||
RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone
|
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
|
FROM base AS deps
|
||||||
WORKDIR /temp-deps
|
WORKDIR /temp-deps
|
||||||
|
|||||||
Reference in New Issue
Block a user