mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-16 01:01:38 +00:00
13 lines
352 B
Docker
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
|