16 lines
252 B
Docker
16 lines
252 B
Docker
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
|