docket file

This commit is contained in:
hamid zarghami
2025-05-19 16:32:55 +03:30
parent c5c3b0a952
commit 75d671545b
5 changed files with 1114 additions and 7633 deletions
+4 -8
View File
@@ -6,15 +6,11 @@ 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
# Install pnpm
RUN npm install -g corepack@latest
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /build
COPY package*.json pnpm-lock.yaml* ./
RUN pnpm install --frozen-lockfile
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
@@ -25,4 +21,4 @@ RUN cat /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
CMD ["nginx", "-g", "daemon off;"]