Update Dockerfile to pass env variables
All checks were successful
Deploy Yaltopia Tickets Admin / deploy (push) Successful in 21s

This commit is contained in:
Binyam 2026-02-28 15:22:16 +03:00
parent 7d78a488c1
commit c7021d8c59

View File

@ -12,6 +12,13 @@ RUN npm ci
# Copy source code
COPY . .
# Build-time env (Vite inlines these at build time)
ARG VITE_BACKEND_API_URL
ARG VITE_ENV=production
ENV VITE_BACKEND_API_URL=${VITE_BACKEND_API_URL}
ENV VITE_ENV=${VITE_ENV}
# Build the application
RUN npm run build:prod