military sector docker compose
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

21 lines
471 B

# Docker image for web file run
# VERSION 2.0
# Author: bb
# 指明当前镜像继承的基础镜像,编译当前镜像时候会自动下载基础镜像(仅第一次打包会下载)
# 基础镜像
FROM nginx
LABEL Author="bb, aagmix"
LABEL VERSION="1.0"
# config
COPY nginx.conf /etc/nginx
COPY conf.d /etc/nginx/conf.d
# 将html里的文件直接复制到nginx的html目录
COPY html /usr/share/nginx/html
# 暴露端口
EXPOSE 3001
CMD "nginx" "-g" "daemon off;"