Closed pourmand1376 closed 11 months ago
How do you reproduce slim
on your local machine? Do the commands and environment mirror those used in your GitHub Actions?
Hi, Thanks for replying.
Here, I've mentioned using docker-slim and came along with this code to minify my docker image (which works great):
docker-slim build --compose-file docker-compose.yml --target-compose-svc jekyll
I've tried to mirror everything but something is not right. Can you spot any difference?
So, the way you reproduce on the local machine does not use --http-probe-off
or --http-probe=false
flag?
No, I do not use http-probe-off.
This was something I did to see if the problem can be fixed. Now, I commented out this line and the problem still persists.
Here is the dockerslim github action and Here is the log.
It is still saying:
cmd=build info=results status='MINIFIED' by='109.74X' size.original='1.6 GB' size.optimized='14 MB'
I've found the problem!
Why is --continue-after 1
the default option? There is no way to change this to normal mode and it overrides default behavior.
I could reproduce the problem by using
docker-slim build --compose-file docker-compose.yml --target-compose-svc jekyll --continue-after 1
The point is continue-after 1
should not be passed by default.
Hi, Thanks for building this amazing Github action.
I want to add your workflow to al-folio github template.
This is my docker-compose file:
This is my github actions file:
I've noticed that when I use Docker Slim, the image size on my local machine is reduced from 1.6GB to 188MB, which is already impressive. However, when I utilize Docker Slim within my GitHub Actions workflow, the image size is further reduced to just 14MB, which seems almost impossible.
I can not understand where the problem is or how I should fix this.
Here you can see the complete log file.