Skip to content

Commit b8840bb

Browse files
author
litongjava
committed
add litongjava/8u391:stable-slim
1 parent 2920a69 commit b8840bb

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

docs/zh/02_部署/05.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Dockerfile
2929
```shell
3030

3131
# Use litongjava/jdk:8u211 as the base image
32-
FROM litongjava/jdk:8u211
32+
FROM litongjava/8u391:stable-slim
3333

3434
# Set the working directory in the container
3535
WORKDIR /app
@@ -49,6 +49,11 @@ docker build -t litongjava/tio-boot-web-hello .
4949
docker run -dit --restart=always --net=host --name=tio-boot-web-hello litongjava/tio-boot-web-hello
5050
```
5151

52+
这里推荐推荐笔者封装的两个镜像,推荐使用 litongjava/8u391:stable-slim
53+
54+
- litongjava/8u391:stable-slim 352MB
55+
- litongjava/jdk:8u211 549MB
56+
5257
#### 3.3.2.binary
5358

5459
如果要使用二进制的方式启动,推荐移除 hotswap-classloader 依赖使用 TioApplication 启动应用,示例代码如下
@@ -74,4 +79,4 @@ docker run --rm -p 8080:80 -v $(pwd)/target:/app debian /app/web-hello
7479

7580
```shell
7681
docker run --rm -p 8080:80 -v $(pwd)/target:/app -e JAVA_HOME=/usr/java/jdk1.8.0_211 litongjava/jdk:8u211 /app/web-hello
77-
```
82+
```

0 commit comments

Comments
 (0)