You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

11 lines
314 B

# Stage 1: build Vue frontend
FROM node:20-alpine AS frontend-builder
WORKDIR /app
COPY frontend/package.json frontend/package-lock.json ./
RUN npm ci
COPY frontend/ .
RUN npm run build
# Stage 2: nginx with built frontend baked in
FROM nginx:1.27-alpine
COPY --from=frontend-builder /app/dist /app/frontend/dist