mootfrost-dev/frontend/Dockerfile
2023-06-04 11:58:09 +03:00

19 lines
303 B
Docker

FROM node:20-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN yarn
COPY . .
RUN yarn build
FROM nginx:stable-alpine as
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;"]