mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-04-13 17:09:45 +08:00
@@ -7,11 +7,11 @@ RUN mkdir -p /apps
|
||||
COPY . /apps
|
||||
WORKDIR /apps
|
||||
## 安装依赖
|
||||
RUN npm i --registry https://registry.npmmirror.com && npm run build
|
||||
RUN npm ci --registry https://registry.npmmirror.com && npm run build
|
||||
|
||||
# 设置部署镜像
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:latest
|
||||
|
||||
|
||||
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine
|
||||
# 将dist文件中的内容复制到 /usr/share/nginx/html/ 这个目录下面 注意:--from参数
|
||||
COPY --from=build_base /apps/docs/.vuepress/dist/ /usr/share/nginx/html/
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
"dev": "vuepress dev docs",
|
||||
"build": "vuepress build docs",
|
||||
"build-image": "bash scripts/build_image.sh $npm_package_version",
|
||||
"ali": "bash scripts/deploy.bash ali $npm_package_version",
|
||||
"github": "bash scripts/deploy.bash github"
|
||||
"ali": "bash scripts/deploy.sh ali $npm_package_version",
|
||||
"github": "bash scripts/page_deploy.sh"
|
||||
},
|
||||
"author": "Rong姐姐好可爱",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -31,14 +31,16 @@ git commit -m "refactor:${commitInfo}"
|
||||
|
||||
|
||||
## 配置个人信息
|
||||
git config user.name "晚上吃芝士+葡萄的妹妹"
|
||||
git config user.email "fairy0115@2925.com"
|
||||
git config user.name '妹妹手上有抹茶'
|
||||
git config user.email 'fairy_408@2925.com'
|
||||
|
||||
git config --list
|
||||
|
||||
# if you are deploying to https://<USERNAME>.github.io
|
||||
# git push -f git@github.com:<USERNAME>/<USERNAME>.github.io.git master
|
||||
|
||||
# if you are deploying to https://<USERNAME>.github.io/<REPO>
|
||||
git push -f https://github.com/mmdapl/JavaScriptCollection.git master:pages/github
|
||||
git push https://github.com/142vip/408CSFamily.git master:pages/github
|
||||
|
||||
|
||||
cd -
|
||||
Reference in New Issue
Block a user