Files
martial-admin-mini/Dockerfile
Developer 92aa0cdf11
Some checks failed
continuous-integration/drone/push Build encountered an error
Add CI/CD config
2025-12-12 19:00:43 +08:00

12 lines
237 B
Docker

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;"]