Add vite api base
This commit is contained in:
@@ -29,6 +29,8 @@ services:
|
||||
build:
|
||||
context: ./frontend
|
||||
image: cafeteria-frontend:${FRONTEND_TAG}
|
||||
environment:
|
||||
VITE_API_BASE: ${VITE_API_BASE}
|
||||
networks:
|
||||
- cafeteria
|
||||
ports:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user