title: Upgrade my dockerfile from java:8-jre to java 11?
body: <p>I currently have this dockerfile that I use for a small spring boot web application:</p>
  
  <pre><code>FROM java:8-jre
  COPY ["target/backend-0.1.0-SNAPSHOT.jar", "/backend-0.1.0-SNAPSHOT.jar"]
  CMD ["java", "-jar", "backend-0.1.0-SNAPSHOT.jar"]
  </code></pre>
  
  <p>I would like to update it to java 11. So I went to docker hub and found:</p>
  
  <p><a href="https://hub.docker.com/layers/openjdk/library/openjdk/11.0-jre/images/sha256-6e0b724fd42e5413fd2b3835a559ccc6c6fe621b8adb4a9ba0fa0bcfa1de55bb" rel="nofollow noreferrer">https://hub.docker.com/layers/openjdk/library/openjdk/11.0-jre/images/sha256-6e0b724fd42e5413fd2b3835a559ccc6c6fe621b8adb4a9ba0fa0bcfa1de55bb</a></p>
  
  <p>and updated my dockerfile to:</p>
  
  <pre><code>FROM openjdk:11.0-jre
  COPY ["target/backend-0.1.0-SNAPSHOT.jar", "/backend-0.1.0-SNAPSHOT.jar"]
  CMD ["java", "-jar", "backend-0.1.0-SNAPSHOT.jar"]
  </code></pre>
  
  <p>and it looks like it builds and runs fine. But is that the best base image to use? I have read that most people recommend <em>alpine</em> (smaller) versions but I don't seem to find that on docker hub:</p>
  
  <p><a href="https://hub.docker.com/_/openjdk?tab=tags&amp;page=1&amp;name=11-alpine" rel="nofollow noreferrer">https://hub.docker.com/_/openjdk?tab=tags&amp;page=1&amp;name=11-alpine</a></p>
  
  <p>I did find:</p>
  
  <p><a href="https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/alpine/Dockerfile.hotspot.releases.full" rel="nofollow noreferrer">https://github.com/AdoptOpenJDK/openjdk-docker/blob/master/11/jre/alpine/Dockerfile.hotspot.releases.full</a></p>
  
  <p>but there is no info on how to use it - e.g. what the correct name in the FROM should be. Unless its not available as a docker image and I need to build it myself?</p>