Files
xinfra/authserver/web/Dockerfile
T

17 lines
273 B
Docker
Raw Normal View History

2026-07-13 14:39:56 +08:00
FROM node:14-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm install --no-audit --no-fund
COPY . .
RUN npm run build
FROM nginx:1.29-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=builder /app/dist /usr/share/nginx/html/auth
EXPOSE 80