Add vite api base
Some checks failed
CD/pipeline/head Something is wrong with the build of this commit
Some checks failed
CD/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@@ -29,6 +29,8 @@ services:
|
|||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
image: cafeteria-frontend:${FRONTEND_TAG}
|
image: cafeteria-frontend:${FRONTEND_TAG}
|
||||||
|
environment:
|
||||||
|
VITE_API_BASE: ${VITE_API_BASE}
|
||||||
networks:
|
networks:
|
||||||
- cafeteria
|
- cafeteria
|
||||||
ports:
|
ports:
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
FROM node:20-slim AS build
|
FROM node:20-slim AS build
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
ARG VITE_API_BASE
|
||||||
|
ENV VITE_API_BASE=$VITE_API_BASE
|
||||||
RUN npm install --no-progress
|
RUN npm install --no-progress
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
Reference in New Issue
Block a user