Initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user