GoogleContainerTools / kaniko

Build Container Images In Kubernetes
Apache License 2.0
14.67k stars 1.42k forks source link

/usr/lib/x86_64-linux-gnu/libcurl.so.4 Missing #3320

Open rlindsberg opened 1 week ago

rlindsberg commented 1 week ago

Actual behavior The following files are missing when using Kaniko to build.

lrwxrwxrwx 1 root root 16 Sep 19 08:57 /usr/lib/x86_64-linux-gnu/libcurl.so.4 -> libcurl.so.4.8.0 -rw-r--r-- 1 root root 677656 Sep 6 11:38 /usr/lib/x86_64-linux-gnu/libcurl.so.4.7.0 -rw-r--r-- 1 root root 786336 Sep 6 11:27 /usr/lib/x86_64-linux-gnu/libcurl.so.4.8.0

Expected behavior Symbolink and files present

To Reproduce Steps to reproduce the behavior:

  1. Use docker to build a image `FROM ubuntu

RUN apt update && apt install libcurl4 -y

RUN ls -l /usr/lib/x86_64-linux-gnu/libcurl* `

  1. docker run that image, verify that libcurl.so.4 is present.
  2. Repeat step 1 and 2 but instead using docker build, use Kaniko instead.
  3. results Screenshot 2024-09-19 at 10 40 43

Additional Information

rlindsberg commented 1 day ago

related: https://github.com/GoogleContainerTools/kaniko/issues/1045