init project
This commit is contained in:
15
nginx/dockerfile
Normal file
15
nginx/dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
# 基础镜像
|
||||
FROM nginx
|
||||
# author
|
||||
MAINTAINER agt
|
||||
|
||||
# 挂载目录
|
||||
VOLUME /home/agt/html
|
||||
# 创建目录
|
||||
RUN mkdir -p /home/agt/html
|
||||
# 指定路径
|
||||
WORKDIR /home/agt/html
|
||||
# 复制conf文件到路径
|
||||
COPY ./conf/nginx.conf /etc/nginx/nginx.conf
|
||||
# 复制html文件到路径
|
||||
COPY ./html/dist /home/agt/html
|
||||
Reference in New Issue
Block a user