A Dockerfile describes the software that is “baked” into an image. It isn’t just ingredients though, it can tell the software what environment to use or what commands to run.
- A Dockerfile has no extension
from ... RUN ["apt-get", "update"] RUN ["apt-get", "install", "-y", "vim"]
- Inkscape with X11
With multi-stage builds, you use multiple FROM statements in your Dockerfile.
If you use Docker 17.05 or higher, you can use multi-stage builds to drastically reduce the size of your final image
RUN apt-get update && apt-get install -y \ bzr \ cvs \ git \ mercurial \ subversion