Compare commits

...

6 Commits

Author SHA1 Message Date
danak 1bf531a9cb Update .env
deploy to danak / build_and_deploy (push) Has been cancelled
2026-06-11 08:24:03 +00:00
danak 600f134545 Update Dockerfile
deploy to danak / build_and_deploy (push) Has been cancelled
2026-06-11 07:33:18 +00:00
danak 1110aae56d Update Dockerfile
deploy to danak / build_and_deploy (push) Has been cancelled
2026-06-11 06:59:18 +00:00
hamid zarghami b33879b85b change base url
deploy to danak / build_and_deploy (push) Has been cancelled
2026-05-31 14:59:51 +03:30
hamid zarghami aa4da4362d fix build error
deploy to danak / build_and_deploy (push) Has been cancelled
2026-05-31 14:22:48 +03:30
hamid zarghami 9e92b1012e unset pnpm
deploy to danak / build_and_deploy (push) Has been cancelled
2026-05-31 14:14:16 +03:30
6 changed files with 9913 additions and 6559 deletions
-1
View File
@@ -4,7 +4,6 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
+1
View File
@@ -0,0 +1 @@
legacy-peer-deps=true
+8 -12
View File
@@ -3,19 +3,15 @@ FROM node:22-alpine AS builder
# 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) — pnpm uses the same registry
ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/
RUN npm config set registry https://package-mirror.liara.ir/repository/npm/
# 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 npm install -g corepack@latest
RUN corepack enable && corepack prepare pnpm@10 --activate
RUN pnpm config set registry https://package-mirror.liara.ir/repository/npm/
# 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
# RUN cp /usr/share/zoneinfo/Asia/Tehran /etc/localtime && echo "Asia/Tehran" > /etc/timezone?
WORKDIR /build
@@ -30,8 +26,8 @@ ARG VITE_CONSOLE_URL
ARG VITE_WORKSPACE_ID
ARG VITE_HELP_URL
COPY package*.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --loglevel info
COPY package*.json package-lock.json* .npmrc ./
RUN npm ci --loglevel info || npm install --loglevel info
COPY . ./
RUN set -e; \
env_args=""; \
@@ -44,7 +40,7 @@ RUN set -e; \
[ -n "$VITE_CONSOLE_URL" ] && env_args="$env_args VITE_CONSOLE_URL=$VITE_CONSOLE_URL"; \
[ -n "$VITE_WORKSPACE_ID" ] && env_args="$env_args VITE_WORKSPACE_ID=$VITE_WORKSPACE_ID"; \
[ -n "$VITE_HELP_URL" ] && env_args="$env_args VITE_HELP_URL=$VITE_HELP_URL"; \
eval "env$env_args pnpm run build"
eval "env$env_args npm run build"
FROM nginx:stable-alpine AS production-stage
+9903
View File
File diff suppressed because it is too large Load Diff
+1 -3
View File
@@ -40,7 +40,6 @@
"react-infinite-scroll-component": "^6.1.0",
"react-loading-skeleton": "^3.5.0",
"react-multi-date-picker": "^4.5.2",
"react-quill": "^2.0.0",
"react-quill-new": "^3.6.0",
"react-router-dom": "^7.5.2",
"react-spinners": "^0.17.0",
@@ -72,6 +71,5 @@
"typescript": "~5.7.2",
"typescript-eslint": "^8.26.1",
"vite": "^6.3.1"
},
"packageManager": "pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184"
}
}
-6543
View File
File diff suppressed because it is too large Load Diff