It's a sample spring boot demo docker image with rest api.
use below command to run. tomcat is embedded server and it runs on port 7989.
docker run -p 7989:7989 ymca5ankit/bootdemo:8.0
** below url will hit the rest api** http://localhost:7989/api/sum
below is docker file code
FROM adoptopenjdk/openjdk11
ARG JAR_FILE=*.jar
COPY ${JAR_FILE} app.jar
CMD ["java", "-jar", "app.jar"]
below is the command to build image
docker build --build-arg JAR_FILE=order.jar -t ymca5ankit/bootdemo:8.0 .
Content type
Image
Digest
Size
242 MB
Last updated
over 5 years ago
docker pull ymca5ankit/bootdemo:8.0