Spring Boot in Docker

added by DotNetKicks
8/16/2021 4:29:19 PM

580 Views

This is a demo of how you can containerize a Spring Boot in application. Dockerfile FROM openjdk:8-jdk-alpine # run this separately to generate build/libs/*.jsar in the root directory of this application # ./gradlew build ADD build/libs/*.jar app.jar ENTRYPOINT ["java","-jar","/app.jar"] Dockerizing a Spring Boot 2 Login to Docker Hub $ docker login Create a Spring Boot 2 container.


0 comments