Open calebwoofenden opened 2 years ago
This is going to be very hard for anyone to work on if they have to come up with the reproduction case themselves. If you'd like it fixing I suggest you provide the minimal dockerfiles to recreate the problem here.
Actual behavior A clear and concise description of what the bug is.
I have a multi-stage Dockerfile. The first stage,
package_installer
, installs Poetry and then installs Python packages with Poetry. The second, primary stage copies files from this stage:When running a container from the image built by Kaniko using this Dockerfile, I run into strange Python errors. I used
container-diff
to compare this image to one created from the same Dockerfile withdocker build
and found that an enormous amount of files in/usr/local/lib
and/usr/local/bin
are changed. Most notably, every.pyc
file in Python'ssite-packages
is noted as changed.Additionally, the image from the same Dockerfile built via Kaniko is about 15% larger than the one built via
docker build
.Expected behavior A clear and concise description of what you expected to happen.
The image should be the same whether it's built with Kaniko or
docker build
.To Reproduce Steps to reproduce the behavior:
COPY
commands in the second stage, being sure to change to the appropriate Python versionAdditional Information
Kaniko Image (fully qualified with digest) This happens on the latest version of the official Kaniko image (1.8.1) and also on 1.7.0.
Triage Notes for the Maintainers
--cache
flag