Skip to content

Commit

Permalink
doc: update docs/dockerfile.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 14, 2023
1 parent 03b2ce1 commit 1ca1e49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/dockerfile.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ Dockerfile 示例
### 服务静态网站的最小 Docker 镜像

```dockerfile
FROM lipanski/docker-static-website:latest
FROM wcjiang/docker-static-website:latest
# 使用 .dockerignore 文件来控制镜像中的内容!
# 复制当前目录内容,到容器中
COPY ./ .
Expand All @@ -223,13 +223,13 @@ COPY ./ .
这会产生一个 **`154KB +`** 的单层镜像。 如果您需要以不同的方式配置 `httpd`,您可以覆盖 CMD 行:

```dockerfile
FROM lipanski/docker-static-website:latest
FROM wcjiang/docker-static-website:latest
COPY . .

CMD ["/busybox","httpd","-f","-v","-p","3000","-c","httpd.conf"]
```

缩小镜像过程[查看原文](https://lipanski.com/posts/smallest-docker-image-static-website),镜像 [Dockerfile 源码](https://github.com/lipanski/docker-static-website)
缩小镜像过程[查看原文](https://lipanski.com/posts/smallest-docker-image-static-website),镜像 [Dockerfile 源码](https://github.com/forksss/docker-static-website)

### Docker 镜像多阶段构建

Expand Down

0 comments on commit 1ca1e49

Please sign in to comment.