Add vite api base

This commit is contained in:
2025-12-23 18:53:36 +01:00
parent 7de0f434c3
commit a2f21e1286
2 changed files with 4 additions and 0 deletions

View File

@@ -29,6 +29,8 @@ services:
build:
context: ./frontend
image: cafeteria-frontend:${FRONTEND_TAG}
environment:
VITE_API_BASE: ${VITE_API_BASE}
networks:
- cafeteria
ports:

View File

@@ -1,6 +1,8 @@
FROM node:20-slim AS build
WORKDIR /app
COPY package*.json ./
ARG VITE_API_BASE
ENV VITE_API_BASE=$VITE_API_BASE
RUN npm install --no-progress
COPY . .
RUN npm run build