diff --git a/Dockerfile b/Dockerfile index 9029823..0e5133f 100755 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,13 @@ RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/a # Configure npm registry mirror ENV NPM_CONFIG_REGISTRY=https://registry.npmmirror.com -# Install tzdata to support timezone settings -RUN apk add --no-cache tzdata -ENV TZ=Asia/Tehran +# Install tzdata and set timezone +RUN apk add --no-cache tzdata \ + && cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime \ + && echo "Asia/Tehran" > /etc/timezone \ + && apk del tzdata -# Set the timezone to Asia/Tehran -RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone +ENV TZ=Asia/Tehran FROM base AS deps