Add Docker support and GitHub Actions workflow

This commit is contained in:
2026-04-27 10:38:22 +08:00
parent c6154273f2
commit 2caef17124
6 changed files with 159 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]