13 lines
282 B
Docker
13 lines
282 B
Docker
# Build the Vite frontend
|
|
FROM node:20-alpine AS frontend
|
|
WORKDIR /app
|
|
COPY frontend/package*.json ./
|
|
RUN npm install
|
|
COPY frontend/ ./
|
|
RUN npm run build
|
|
|
|
# Serve with Caddy
|
|
FROM caddy:2-alpine
|
|
COPY --from=frontend /app/dist /srv/web
|
|
COPY Caddyfile /etc/caddy/Caddyfile
|