From d6249713bd0ad1d7017e0d134f6b21cafea8f077 Mon Sep 17 00:00:00 2001 From: hamid zarghami Date: Wed, 20 Aug 2025 13:13:39 +0330 Subject: [PATCH] docker file --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e8a618d..9c66677 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,17 +2,15 @@ FROM node:22-alpine AS builder # Install tzdata to support timezone settings RUN apk add --no-cache tzdata -RUN npm install -g corepack@latest -RUN corepack enable && corepack prepare pnpm@10 --activate # Set the timezone to Asia/Tehran RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone WORKDIR /build -COPY package*.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile --loglevel info +COPY package*.json ./ +RUN npm ci --legacy-peer-deps COPY . ./ -RUN pnpm run build +RUN npm run build FROM nginx:stable-alpine AS production-stage