Open eohtake opened 4 years ago
I can't reproduce this issue, building with the latest alpine
produces a correct build with the clair binary in the /usr/local/bin
folder that already exists in the base alpine image:
$ docker run -ti alpine
# ls -la /usr/local/
total 20
drwxr-xr-x 5 root root 4096 Oct 21 13:39 .
drwxr-xr-x 7 root root 4096 Oct 21 13:39 ..
drwxr-xr-x 2 root root 4096 Oct 21 13:39 bin
drwxr-xr-x 2 root root 4096 Oct 21 13:39 lib
drwxr-xr-x 2 root root 4096 Oct 21 13:39 share
Are you sure you are using an up to date alpine base image ?
I've also just setup automated builds on the docker hub instead of travis, so the image should objectiflibre/clair-scanner
stay up-to-date.
Hello, Running a container with an image built from this Dockerfile generates an error:
I did a little investigation and found that on the Dockerfile, the binary name is missing in the destination folder, so the copy operation is overwriting the /usr/local/bin folder.
The correct copy line should be:
COPY --from=0 /gopath/src/clair/clair /usr/local/bin/clair
Below some evidence that the bin folder became the Clair binary: