A few weeks ago I created a video showcasing how we can set up a simple Spring Boot REST API, I now wanted to showcase how we can move this API into a Docker container and then run it.
IMPORTANT: OpenJDK is now deprecated and we should use "eclipse-temurin:17" instead. OpenJDK will still work but is not getting any new updates.
Note that the second line in the Dockerfile does not have any effect in this example; it merely searches for any JAR file, which can then be utilized, as the third line copies the JAR_FILE instead of directly placing the file.
Spring Boot API Tutorial: [ Ссылка ]
My channel publishes programming and software engineering videos, especially Java and Python. If that is what you want, do not hesitate to join me on this journey!
Subscribe to my YouTube channel:
[ Ссылка ]
How to dockerize your Spring Boot API | Docker Tutorial
Теги
random codedockerize spring boot applicationdockerize spring bootdockerize spring boot appspring boot dockerspring bootDockerJava Techiejavatechiedockerspring boot docker tutorialspringspring boot tutorialspring boot + dockerrun spring boot in dockerspring boot docker kuberneteshow to run spring boot in dockerhow to create spring boot docker imagedocker containerdocker spring bootrun spring boot dockerdocker + spring bootapispirng api