This commit is contained in:
@@ -4,7 +4,6 @@ logs
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
pnpm-debug.log*
|
|
||||||
lerna-debug.log*
|
lerna-debug.log*
|
||||||
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|||||||
+4
-8
@@ -3,17 +3,13 @@ FROM node:22-alpine AS builder
|
|||||||
# Change Alpine repo
|
# Change Alpine repo
|
||||||
RUN sed -i 's|https://dl-cdn.alpinelinux.org/alpine|https://mirror.de.velop.ir/alpine|g' /etc/apk/repositories
|
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
|
# Configure npm registry mirror (Liara)
|
||||||
ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/
|
ENV NPM_CONFIG_REGISTRY=https://package-mirror.liara.ir/repository/npm/
|
||||||
RUN npm config set 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
|
# Install tzdata to support timezone settings
|
||||||
RUN apk add --no-cache tzdata
|
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/
|
|
||||||
|
|
||||||
# Set the timezone to Asia/Tehran
|
# 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
|
||||||
|
|
||||||
@@ -30,8 +26,8 @@ ARG VITE_CONSOLE_URL
|
|||||||
ARG VITE_WORKSPACE_ID
|
ARG VITE_WORKSPACE_ID
|
||||||
ARG VITE_HELP_URL
|
ARG VITE_HELP_URL
|
||||||
|
|
||||||
COPY package*.json pnpm-lock.yaml ./
|
COPY package*.json package-lock.json* ./
|
||||||
RUN pnpm install --frozen-lockfile --loglevel info
|
RUN npm ci --loglevel info || npm install --loglevel info
|
||||||
COPY . ./
|
COPY . ./
|
||||||
RUN set -e; \
|
RUN set -e; \
|
||||||
env_args=""; \
|
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_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_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"; \
|
[ -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
|
FROM nginx:stable-alpine AS production-stage
|
||||||
|
|
||||||
|
|||||||
+1
-2
@@ -72,6 +72,5 @@
|
|||||||
"typescript": "~5.7.2",
|
"typescript": "~5.7.2",
|
||||||
"typescript-eslint": "^8.26.1",
|
"typescript-eslint": "^8.26.1",
|
||||||
"vite": "^6.3.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