From eb65cbc44f07c33703f9433db4a64f8303059ec2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fahri=20Can=20Se=C3=A7er?= Date: Thu, 5 Feb 2026 01:42:14 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index cfa59ca..7a09632 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,20 @@ FROM node:20 AS build-stage WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --legacy-peer-deps COPY . . # Set build-time variables for Vite ARG VITE_API_URL +ARG VITE_GOOGLE_CLIENT_ID ENV VITE_API_URL=$VITE_API_URL +ENV VITE_GOOGLE_CLIENT_ID=$VITE_GOOGLE_CLIENT_ID RUN npm run build # Production stage -FROM nginx:stable-alpine as production-stage +FROM nginx:stable-alpine AS production-stage COPY --from=build-stage /app/dist /usr/share/nginx/html