init program-2026
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# --- 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
|
||||
Reference in New Issue
Block a user