Dockerfile example for layered jars does not match the default layers.

Please see this section of the doc: https://docs.spring.io/spring-boot/docs/2.3.0.M4/reference/htmlsingle/#writing-the-dockerfile

The Dockerfile example currently contains:

FROM adoptopenjdk:11-jre-hotspot WORKDIR application COPY --from=builder application/dependencies/ ./ COPY --from=builder application/snapshot-dependencies/ ./ COPY --from=builder application/resources/ ./ COPY --from=builder application/application/ ./ ENTRYPOINT ["java", "org.springframework.boot.loader.JarLauncher"]

Two observations:

  1. Seems like the example should be updated to include a COPY statement for the new spring-boot-loader layer.

  2. The example includes a COPY statement for a resources directory that is not mentioned as a default layer in the preceding section of the doc (https://docs.spring.io/spring-boot/docs/2.3.0.M4/reference/htmlsingle/#layering-docker-images)

Would be more clear if there was consistency between default layers mentioned and sample Dockerfile, or an explanation of the differences (e.g. is a resources layer recommended and how does one generate it if it is not a default layer?).