zhuyougu commited on
Commit
19a253c
1 Parent(s): 5f97ae3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用官方的Nginx镜像作为基础镜像
2
+ FROM nginx:latest
3
+
4
+ # 将本地的nginx.conf复制到镜像中的/etc/nginx/nginx.conf
5
+ COPY nginx.conf /etc/nginx/nginx.conf
6
+
7
+ # 将本地的html文件复制到镜像中的/usr/share/nginx/html
8
+ COPY dist2 /usr/share/nginx/html
9
+
10
+ # 暴露80端口,使外部可以访问Nginx
11
+ EXPOSE 7860
12
+
13
+ # 定义容器启动时执行的命令
14
+ CMD ["nginx", "-g", "daemon off;"]