Files
xinfra/authserver/Dockerfile.nginx
T

16 lines
252 B
Docker
Raw Normal View History

FROM node:20-alpine AS builder
WORKDIR /app/frontend
COPY frontend/package*.json ./
RUN npm ci --no-audit --no-fund
COPY frontend/ ./
RUN npm run build
FROM nginx:1.29-alpine
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
EXPOSE 80