Update Dockerfile
All checks were successful
Deploy Frontend / deploy (push) Successful in 1m56s

This commit is contained in:
2026-02-05 01:42:14 +03:00
parent fc162dd6dd
commit eb65cbc44f

View File

@@ -4,18 +4,20 @@ FROM node:20 AS build-stage
WORKDIR /app WORKDIR /app
COPY package*.json ./ COPY package*.json ./
RUN npm install RUN npm install --legacy-peer-deps
COPY . . COPY . .
# Set build-time variables for Vite # Set build-time variables for Vite
ARG VITE_API_URL ARG VITE_API_URL
ARG VITE_GOOGLE_CLIENT_ID
ENV VITE_API_URL=$VITE_API_URL ENV VITE_API_URL=$VITE_API_URL
ENV VITE_GOOGLE_CLIENT_ID=$VITE_GOOGLE_CLIENT_ID
RUN npm run build RUN npm run build
# Production stage # 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 COPY --from=build-stage /app/dist /usr/share/nginx/html