Skip to content

Instantly share code, notes, and snippets.

View polarlights's full-sized avatar

Polar Lights polarlights

  • Shanghai, PRC.
View GitHub Profile
@polarlights
polarlights / spring-boot-docker.md
Created July 18, 2021 01:25 — forked from msauza/spring-boot-docker.md
Multi-Layer, Multi-Stage: Spring Boot application with Docker.

Overview

Spring Boot applications can run within a container by Multi-Layer based approach. Each layer may contain different parts of the application such as dependencies, source code, resources and even snapshot dependencies.

In the other hand, with Multi-Stage Build approach, any application can be built at a separate image from the final image that will contain the runnable application.

Spring Boot Docker

Multi-Layer