Files
DefectingCat.github.io/Dockerfile
2021-01-24 11:01:28 +08:00

13 lines
352 B
Docker

FROM node:15.0.1-alpine as builder
WORKDIR /root
COPY ./ ./
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk update \
&& apk upgrade \
&& apk add --no-cache yarn \
&& npm install \
&& npm run dev
FROM nginx:alpine
COPY --from=builder /root/public/ /usr/share/nginx/html