Add CI/CD config
Some checks failed
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Developer
2025-12-12 19:00:02 +08:00
parent 7807f4b3e4
commit 00a6b272b7
2 changed files with 48 additions and 0 deletions

11
Dockerfile Normal file
View File

@@ -0,0 +1,11 @@
FROM node:16-alpine as builder
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
RUN npm run build:h5
FROM nginx:alpine
COPY --from=builder /app/dist/build/h5 /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]