summaryrefslogtreecommitdiff
path: root/Dockerfile
blob: ea332396c960cd7741e8eff8312d09e0e3715c4d (plain)
1
2
3
4
5
6
7
8
9
FROM node:alpine AS builder
WORKDIR /app
COPY . .
RUN yarn && yarn run build

FROM nginx:alpine
RUN rm -rf /usr/share/nginx/html/*
COPY --from=builder /app/public /usr/share/nginx/html
CMD ["nginx", "-g", "daemon off;"]