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.
|
#拉取nginx |
|
FROM nginx:latest |
|
|
|
#将dist文件中的内容复制到‘/usr/share/nginx/html/`这个目录下面 |
|
COPY dist/ /usr/share/nginx/html/ |
|
|
|
#用本地配置文件来替换ngin×镜像里的默认配置 |
|
COPY nginx/default.conf /etc/nginx/nginx.conf |
|
|
|
#对外暴露接口 |
|
EXPOSE 80 |