From c7021d8c594eb350e0298e070fa02fe315ff8357 Mon Sep 17 00:00:00 2001 From: Binyam Date: Sat, 28 Feb 2026 15:22:16 +0300 Subject: [PATCH] Update Dockerfile to pass env variables --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index f4feaf4..f9f1598 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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