Compare commits
6 Commits
e37c42a276
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 1bf531a9cb | |||
| 600f134545 | |||
| 1110aae56d | |||
| b33879b85b | |||
| aa4da4362d | |||
| 9e92b1012e |
@@ -4,7 +4,6 @@ logs
|
||||
npm-debug.log*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
pnpm-debug.log*
|
||||
lerna-debug.log*
|
||||
|
||||
node_modules
|
||||
|
||||
+8
-12
@@ -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
|
||||
|
||||
|
||||
Generated
+9903
File diff suppressed because it is too large
Load Diff
+1
-3
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Generated
-6543
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user