123
All checks were successful
Node.js CI / build (push) Successful in 3m45s

This commit is contained in:
洪剑峰 2024-08-13 16:23:37 +08:00
parent 0766cdf093
commit 37c85af234
2 changed files with 24 additions and 1 deletions

View File

@ -24,3 +24,4 @@ jobs:
- name: Build Docusaurus website - name: Build Docusaurus website
run: yarn build run: yarn build
- run: ls - run: ls
- run: docker build -t dockervue .

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
# 参考https://blog.51cto.com/u_16213361/7195639
# 构建前先编译vuenpm run build
# 基础镜像
FROM nginx
# 定义作者
MAINTAINER superjeff
# 将 Vue 项目的打包文件复制到 Nginx 静态文件目录下
COPY build/ /usr/share/nginx/html/
# 复制自定义的 Nginx 配置文件到容器中
#COPY nginx.conf /etc/nginx/conf.d/default.conf
# 暴露容器的 80 端口
#EXPOSE 8888
# 容器启动时执行的命令
#CMD ["nginx", "-g", "daemon off;"]