Added Dockerfile

This commit is contained in:
Penguin-71630
2025-12-13 05:10:30 +08:00
parent 4de4cc4a18
commit f3108b3c80
8 changed files with 87 additions and 144 deletions

23
Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
# Build stage
FROM node:20-alpine AS builder
WORKDIR /app
COPY webpage/package*.json ./
RUN npm ci
COPY webpage/ .
RUN npm run build
# Production stage
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 48763
CMD ["nginx", "-g", "daemon off;"]