16 lines
353 B
Docker
16 lines
353 B
Docker
# --- build stage ---
|
|
FROM node:20-alpine AS build
|
|
WORKDIR /app
|
|
COPY package.json ./
|
|
RUN npm install
|
|
COPY src ./src
|
|
COPY scripts ./scripts
|
|
|
|
COPY program-2026 ./program-2026
|
|
RUN sh scripts/build.sh program-2026
|
|
|
|
# --- serve stage ---
|
|
FROM caddy:2-alpine
|
|
COPY --from=build /app/program-2026 /srv/sites/program-2026
|
|
COPY app.Caddyfile /etc/caddy/Caddyfile
|