AirGate/frontend/Dockerfile
zyc 002372aa05
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m32s
fix build bug
2026-03-23 09:53:09 +08:00

13 lines
287 B
Docker

FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm config set registry https://registry.npmmirror.com && npm ci
COPY . .
RUN npm run build
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80