15 lines
260 B
Docker
15 lines
260 B
Docker
FROM node:20-alpine AS frontend-build
|
|
|
|
WORKDIR /app
|
|
|
|
COPY frontend/package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY frontend/ ./
|
|
RUN npm run build
|
|
|
|
FROM nginx:1.27-alpine
|
|
|
|
COPY nginx/nginx.conf /etc/nginx/nginx.conf
|
|
COPY --from=frontend-build /app/dist /usr/share/nginx/html
|