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