From a51ae71666f4f0e5443e7fab09503466e81fc8d0 Mon Sep 17 00:00:00 2001 From: jaywcjlove Date: Tue, 14 Mar 2023 08:34:37 +0000 Subject: [PATCH] doc: update docs/dockerfile.md 1ca1e49030eada4b39987801792fdc66a0260e8d --- docs/dockerfile.html | 6 +++--- index.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/dockerfile.html b/docs/dockerfile.html index 49e695d2..83e00013 100644 --- a/docs/dockerfile.html +++ b/docs/dockerfile.html @@ -245,18 +245,18 @@

Dockerfile 示例

服务静态网站的最小 Docker 镜像

-
FROM lipanski/docker-static-website:latest
+
FROM wcjiang/docker-static-website:latest
 # 使用 .dockerignore 文件来控制镜像中的内容!
 # 复制当前目录内容,到容器中
 COPY ./ .
 

这会产生一个 154KB + 的单层镜像。 如果您需要以不同的方式配置 httpd,您可以覆盖 CMD 行:

-
FROM lipanski/docker-static-website:latest
+
FROM wcjiang/docker-static-website:latest
 COPY . .
 
 CMD ["/busybox","httpd","-f","-v","-p","3000","-c","httpd.conf"]
 
-

缩小镜像过程查看原文,镜像 Dockerfile 源码

+

缩小镜像过程查看原文,镜像 Dockerfile 源码

Docker 镜像多阶段构建

FROM golang:alpine as builder
 RUN apk --no-cache add git
diff --git a/index.html b/index.html
index 9f5c9940..e8a5f2ae 100644
--- a/index.html
+++ b/index.html
@@ -1098,7 +1098,7 @@
 
 

如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 docker 快捷部署 web 版。

-
+