Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot 2.3.0 buildpack builds image with creation date 40 years ago

I've tried to use buildpack in a maven project with Spring Boot 2.3.0 running:

mvn spring-boot:build-image

Image was created just fine, but I see the following info for it:

REPOSITORY                                    TAG                     IMAGE ID            CREATED             SIZE
gcr.io/paketo-buildpacks/builder              base-platform-api-0.3   daceb4f909b7        40 years ago        690MB
myimage                                       master                  a482a4a34379        40 years ago        285MB

Why does it say the image (along with the builder) was created 40 years ago?

like image 679
Aleksandr Erokhin Avatar asked Jul 12 '20 19:07

Aleksandr Erokhin


Video Answer


1 Answers

This is by design. In order to create reproducible builds (i.e. so that layers can be reused) the buildpack must create layers with a fixed time stamp. Otherwise, you wouldn’t be able to reuse the layers you created in previous builds because they would have different time stamps.

like image 190
codefinger Avatar answered Oct 17 '22 01:10

codefinger