Подготовил к интеграции с битриксом

This commit is contained in:
NikitaKalitov
2026-07-16 16:23:08 +03:00
parent be2504d60d
commit b09bd6abf7
9 changed files with 374 additions and 13 deletions
+14
View File
@@ -0,0 +1,14 @@
# Static build served by nginx. VITE_BITRIX_ORIGIN must be provided at build
# time (build arg) — it gets baked into the JS bundle, see docs/bitrix-integration.md §7.
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
ARG VITE_BITRIX_ORIGIN
ENV VITE_BITRIX_ORIGIN=$VITE_BITRIX_ORIGIN
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 80