mootfrost-dev/frontend/Dockerfile
Mootfrost777 07918006c7 prod fix
2023-06-04 11:59:39 +03:00

19 lines
300 B
Docker

FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN yarn
COPY . .
RUN yarn build
FROM nginx:stable-alpine
COPY --from=builder /app/dist /usr/share/nginx/html
RUN rm /etc/nginx/conf.d/default.conf
COPY /nginx/default.conf /etc/nginx/conf.d
CMD ["nginx", "-g", "daemon off;"]