Dockerizing Spring Boot Application (Part 2)

Reducing Docker Image Size My colleagues’ feedback about my previous post helped me investigate more efficient ways of writing Dockerfile. The first thing that I realized was choosing the right image base. Alpine based images are recommended for slimmer images and is much smaller than other base images in general. —Dockerfile 1— FROM java:8 VOLUME /tmp ADD target/demo-0.0.1-SNAPSHOT.jar

Read More

Dockerizing Spring Boot Application

In my previous post, I mentioned about How to run docker container on your local machine. This post is about the dockerizing backend part of the Nutrition Tracking Application. We will follow these steps: Building Spring Boot project Writing a Dockerfile Building and running docker image Step 1: Building Spring Boot project mvn clean packagewill produce a

Read More