This commit is contained in:
@@ -1,5 +1,13 @@
|
|||||||
FROM node:20-alpine AS base
|
FROM node:20-alpine AS base
|
||||||
|
|
||||||
|
# Change Alpine repo
|
||||||
|
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://package-mirror.liara.ir/repository/npm/
|
||||||
|
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
|
||||||
|
|
||||||
|
# Install tzdata to support timezone settings
|
||||||
RUN apk add --no-cache tzdata && \
|
RUN apk add --no-cache tzdata && \
|
||||||
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \
|
cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && \
|
||||||
echo "Asia/Tehran" > /etc/timezone
|
echo "Asia/Tehran" > /etc/timezone
|
||||||
|
|||||||
Reference in New Issue
Block a user