docker-slim build --http-probe=false --include-path=/usr/local/bin/docker-php-source php:7.3-alpine
--exclude-patternflag supports the Glob/Match syntax ( https://golang.org/pkg/path/filepath/#Match ) in Go plus the ** pattern
s6-mkfifo: fatal: unable to mkfifo /var/run/s6/services/s6-fdholderd/supervise/control: No such file or directory
Hi guys, is there any guidance on how to figure out base image and add that to xray?
@yashbhutwala great to see that you looked at the code :-) there’s actually quite a bit of information related to the base image information when you run the xray command. For example, here’s what I got running
docker-slim xray dslimexamples/server-node-hapi-alpine (server-node-haps-alpine is one of the sample app, so you can try it yourself):
Dockerfile for the image starts with:
The console output from the xray command has this line:
docker-slim[xray]: info=image.stack index=0 name='node:6.11.0-alpine' id='sha256:b7535c8c7bee13ca6c082141f5416f2f5d9b8bf68a61cb9e6ce82d42773aa40d' instructions=8 message='see report file for details’
Note how the
name field value is
node:6.11.0-alpine, which matches the FROM instruction value.
The slim.report.json file (that gets generated when the command is done) includes
6.11.0-alpine in one of the
And the auto-generated Dockerfile.fat file has line:
# end of image: node:6.11.0-alpine (id: tags: node:6.11.0-alpine)