This commit is contained in:
parent
0766cdf093
commit
37c85af234
@ -24,3 +24,4 @@ jobs:
|
||||
- name: Build Docusaurus website
|
||||
run: yarn build
|
||||
- run: ls
|
||||
- run: docker build -t dockervue .
|
22
Dockerfile
Normal file
22
Dockerfile
Normal file
@ -0,0 +1,22 @@
|
||||
# 参考https://blog.51cto.com/u_16213361/7195639
|
||||
|
||||
# 构建前,先编译vue:npm 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;"]
|
||||
|
Loading…
Reference in New Issue
Block a user