Sign inSign up

saturnism/spring-boot

By saturnism

•Updated over 11 years ago

A base Docker image to run and build Spring Boot applications.

Image
4

50K+

saturnism/spring-boot repository overview

This project contains Dockerfile that creates a base image to run Spring Boot applications. Source is on GitHub saturnism/spring-boot-docker⁠

Check available tagged images to use specific Spring Boot and Groovy versions.

This is not an official Google product.

⁠How to use this image

⁠Groovy Applications

Create a Dockerfile in your project directory:

FROM saturnism/spring-boot
ADD . $SRC_DIR

You can then build and run the image:

docker build -t myapp
docker run -ti myapp

You'll notice that everytime the container starts, it will resolve all the dependencies. To avoid this, you can also pre-compile your Groovy application using the onbuild image.

In the Dockerfile, use:

FROM saturnism/spring-boot:onbuild

You can then build and run the image just like the previous method:

docker build -t myapp
docker run -ti myapp

⁠Examples

You can find examples under the Examples⁠ directory.

Tag summary

Content type

Image

Digest

sha256:a2cec85c4…

Size

861.8 MB

Last updated

almost 11 years ago

docker pull saturnism/spring-boot