Доработки профиля

This commit is contained in:
Халимов Рустам
2026-03-14 01:59:06 +03:00
parent 010b96d362
commit 15344f8636
69 changed files with 1625 additions and 561 deletions
+12 -8
View File
@@ -3,24 +3,28 @@ FROM node:20-alpine AS build
WORKDIR /app
# ROOT package.json
COPY package*.json ./
COPY apps/web/package*.json ./apps/web/
# Copy package files for apps/web
# We use the local package files to avoid workspace hoisting issues in Docker
COPY apps/web/package.json ./
# If there is a lockfile in apps/web, use it, otherwise use root (but root is workspace, so better not)
# Let's try to generate a clean install
RUN npm install --legacy-peer-deps
RUN npm install
# Copy source code
COPY apps/web/ ./
# Copy source
COPY . .
# Build args
ARG VITE_KLIPY_API_KEY
ENV VITE_KLIPY_API_KEY=$VITE_KLIPY_API_KEY
# Build web frontend
WORKDIR /app/apps/web
RUN npm run build
# Stage 2: Serve with Nginx
FROM nginx:alpine
# Copy built assets
COPY --from=build /app/apps/web/dist /usr/share/nginx/html
COPY --from=build /app/dist /usr/share/nginx/html
# Custom Nginx config to proxy /api and /socket.io to server:3001
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf