dockerfile
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
hamid zarghami
2026-05-31 16:22:05 +03:30
parent 7dbd2def27
commit 89d237d75b
3 changed files with 4 additions and 8586 deletions
+3 -5
View File
@@ -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 --loglevel info || npm install --loglevel info
COPY . ./
RUN pnpm run build
RUN npm run build
FROM nginx:stable-alpine AS production-stage