docker-slim | change anything in your Docker container image | Continuous Deployment library
kandi X-RAY | docker-slim Summary
kandi X-RAY | docker-slim Summary
DockerSlim (docker-slim): Don't change anything in your Docker container image and minify it by up to 30x (and for compiled languages even more) making it secure too! (free and open source)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of docker-slim
docker-slim Key Features
docker-slim Examples and Code Snippets
Community Discussions
Trending Discussions on docker-slim
QUESTION
While trying to run a docker image. I am getting the following error.
/usr/local/bin/docker-entrypoint.sh: line 46: cat: command not found
Am I missing something to add to the image while building it? What could be the issue?
Here is the Dockerfile
...ANSWER
Answered 2021-Sep-18 at 06:35FROM scratch
means 'start from an empty directory'. There is no cat
inside, unless explicitly added it. One way to do that is to copy the binary from another image:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install docker-slim
Pick one of the build options that works best for you. Run make (or ./scripts/docker-builder.run.sh or click on ./scripts/mac/docker-builder.run.command on Macs) from the project directory (builds docker-slim in a Docker container; great if you don't want to install Go on your local machine and if you already have Docker). Run make build (or ./scripts/src.build.sh or click on ./scripts/mac/src.build.command on Macs) to build docker-slim natively (requires Go installed locally). Use Go 1.13 or higher. You can use earlier version of Go, but it can't be lower than Go 1.5.1. Versions prior to 1.5.1 have a Docker/ptrace related bug (Go kills processes if your app is PID 1). When the 'monitor' is separate from the 'launcher' process it will be possible to user older Go versions again.
license-bill-of-materials - Optional tool to track dependencies and their licenses.
golint - Optional tool for code analysis. See https://github.com/golang/lint for more details.
Make sure you have golint if you intend to run the src.inspect.sh or mac.src.inspect.command scripts.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page