build a template website
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
# Web: build the React app, serve it with Caddy (automatic HTTPS)
|
||||
FROM node:20-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY index.html vite.config.js links.json ./
|
||||
COPY public ./public
|
||||
COPY src ./src
|
||||
RUN npm run build
|
||||
|
||||
FROM caddy:2-alpine
|
||||
COPY Caddyfile /etc/caddy/Caddyfile
|
||||
COPY --from=build /app/dist /srv
|
||||
Reference in New Issue
Block a user