[root@master Final]# cat Dockerfile
FROM openjdk:8-jdk-alpine3.7
MAINTAINER QingFeng
VOLUME /scan_20221204
ADD target/kubeblog.jar /kubeblog.jar
EXPOSE 5000
ENTRYPOINT ["java","-jar","kubeblog.jar"]
[root@master Final]#
[root@master Final]# netstat -nap | grep 5000
[root@master Final]#
[root@master Final]# netstat -nap | grep 5000
[root@master Final]# docker build -t lubelog:20221204 .
Sending build context to Docker daemon 60.75MB
Step 1/6 : FROM openjdk:8-jdk-alpine3.7
---> 1caad94162ef
Step 2/6 : MAINTAINER QingFeng
---> Using cache
---> 293ae8a371d9
Step 3/6 : VOLUME /scan_20221204
---> Running in baf04e262c1c
Removing intermediate container baf04e262c1c
---> 20e44a2b658c
Step 4/6 : ADD target/kubeblog.jar /kubeblog.jar
---> ccb90c17feff
Step 5/6 : E