Sign inSign up

tdio/spring-boot-base

By tdio

•Updated about 4 years ago

A base docker image for spring-boot build.

Image
0

1.3K

tdio/spring-boot-base repository overview

⁠Usage

A base docker image for spring-boot build. Based on openjdk:8-jre-alpine⁠ with some fixes and enhancements. for more details see Dockerfile⁠

  • Simplify project Dockerfile configurations.
  • Fix fontconfig lossing.

⁠Simple Dockerfile

cat <<EOF > Dockerfile
FROM tdio/spring-boot-base:8-jre-alpine
EOF
$ docker build -t xx --build-arg JAR_FILE=./target/xx.jar

or build with buildx bake

⁠docker-bake.hcl

cat <<EOF > docker-bake.hcl
variable "TAG" {
  default = "latest"
}

group "default" {
  targets = ["test"]
}

target "test" {
  context = "."
  dockerfile =  "Dockerfile"
  args = {
    JAR_FILE = "target/test-spring-app.jar"
  }
  tags = [
    "test-spring-app:${TAG}",
  ]
  platforms = ["linux/amd64", "linux/arm64"]
}
EOF

Tag summary

Content type

Image

Digest

sha256:3b0c0c5ec…

Size

65.3 MB

Last updated

about 4 years ago

docker pull tdio/spring-boot-base