19 lines
341 B
Docker
19 lines
341 B
Docker
# release
|
|
FROM node:20-alpine AS builder
|
|
WORKDIR /app/frontend
|
|
|
|
COPY frontend/package*.json ./
|
|
RUN npm install
|
|
|
|
COPY frontend ./
|
|
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine AS runner
|
|
COPY --from=builder /app/frontend/dist /usr/share/nginx/html
|
|
COPY frontend/nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|