mirror of
https://github.com/DefectingCat/DefectingCat.github.io
synced 2025-07-15 08:41:37 +00:00
update test 更新文章 1. 测试新主题 挖坑 挖坑 update config 更新文章 1. 简易FaaS平台 更新文章 1. 修复错误 更新文章:Promise信任问题 update theme 1. 合并js post: update notedly fix: update faas feature: change theme * fix: comment * feature: pgp * fix: delete local file post: update darkmode update: update dependencies fix: navbar in post incorrect height * pre code adapt to dark mode update new post useCallback update dependencies new post tiny router * add static files update vue tiny router 添加备案 * 更新依赖 add post Add ignore file
14 lines
419 B
Docker
14 lines
419 B
Docker
FROM node:current-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 \
|
|
&& yarn config set registry https://registry.npm.taobao.org \
|
|
&& yarn \
|
|
&& yarn dev
|
|
|
|
FROM nginx:alpine
|
|
VOLUME ["/etc/localtime","/etc/localtime"]
|
|
COPY --from=builder /root/public/ /usr/share/nginx/html
|