Add vite api base
Some checks failed
CD/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
jose-rZM
2025-12-23 18:53:36 +01:00
parent 036fa941c2
commit 0446a84e80
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