fix: pass VITE_API_URL as build arg in Dockerfile

This commit is contained in:
Ai
2026-05-22 11:08:06 +03:00
parent 1cabe9d04f
commit 3da9a5949d

View File

@@ -5,6 +5,13 @@ COPY package.json ./
RUN npm install
COPY . .
ARG VITE_API_URL=https://api.janichat.ru
ARG VITE_WS_URL=wss://api.janichat.ru
ENV VITE_API_URL=$VITE_API_URL
ENV VITE_WS_URL=$VITE_WS_URL
RUN npm run build
FROM nginx:alpine