Update link

Signed-off-by: Kang Huaishuai <khs1994@khs1994.com>
This commit is contained in:
Kang Huaishuai
2021-03-20 11:22:13 +08:00
parent 1e577a8c6f
commit da614e8441
6 changed files with 12 additions and 11 deletions

View File

@@ -16,7 +16,7 @@ $ docker run --name some-nginx -v /some/content:/usr/share/nginx/html:ro -d ngin
用户也可以不使用这种映射方式通过利用 Dockerfile 来直接将静态页面内容放到镜像中内容为
```bash
```docker
FROM nginx
COPY static-html-directory /usr/share/nginx/html
```
@@ -39,7 +39,8 @@ Nginx的默认配置文件路径为 `/etc/nginx/nginx.conf`,可以通过映射
```bash
$ docker run -d \
--name some-nginx \
-v /some/nginx.conf:/etc/nginx/nginx.conf:ro \
-p 8080:80 \
-v /path/nginx.conf:/etc/nginx/nginx.conf:ro \
nginx
```

View File

@@ -10,7 +10,7 @@
在项目中创建一个 Dockerfile
```bash
```docker
FROM node:12
# replace this with your application's default port
EXPOSE 8888