spring-guides / gs-spring-boot-docker

Spring Boot with Docker :: Learn how to create a Docker container from a Spring Boot application with Maven or Gradle

Home Page:https://spring.io/guides/gs/spring-boot-docker/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"RUN touch app.jar" doubles size of app.jar in image

merusso opened this issue · comments

Can you give more details for why this is necessary? Does it still apply for newer versions of Docker? I disabled this command and didn't notice an impact -- app.jar still has a modification time.

It used to be the case that the modification time was 0. Maybe that was a bug in docker and they fixed it. We used to have a bigger base image as well, so the extra layer wasn't as important.