Commit b8840bb litongjava
committed
1 parent 2920a69 commit b8840bb Copy full SHA for b8840bb
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ Dockerfile
29
29
``` shell
30
30
31
31
# Use litongjava/jdk:8u211 as the base image
32
- FROM litongjava/jdk:8u211
32
+ FROM litongjava/8u391:stable-slim
33
33
34
34
# Set the working directory in the container
35
35
WORKDIR /app
@@ -49,6 +49,11 @@ docker build -t litongjava/tio-boot-web-hello .
49
49
docker run -dit --restart=always --net=host --name=tio-boot-web-hello litongjava/tio-boot-web-hello
50
50
```
51
51
52
+ 这里推荐推荐笔者封装的两个镜像,推荐使用 litongjava/8u391: stable-slim
53
+
54
+ - litongjava/8u391: stable-slim 352MB
55
+ - litongjava/jdk:8u211 549MB
56
+
52
57
#### 3.3.2.binary
53
58
54
59
如果要使用二进制的方式启动,推荐移除 hotswap-classloader 依赖使用 TioApplication 启动应用,示例代码如下
@@ -74,4 +79,4 @@ docker run --rm -p 8080:80 -v $(pwd)/target:/app debian /app/web-hello
74
79
75
80
``` shell
76
81
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
+ ```
You can’t perform that action at this time.
0 commit comments