yacd/Dockerfile

10 lines
220 B
Docker
Raw Permalink Normal View History

2019-11-06 22:29:04 +08:00
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;"]