Grocker - a Docker image builder for Python applications
Grocker allows you to bundle your Python applications as Docker image while keeping the image size as minimal as possible.
alpine:latest as its
- Install Docker Engine. See its official documentation.
- Install Grocker with pip:
pip install grocker.
$ grocker build ipython==5.0.0 --entrypoint ipython $ docker run --rm -ti ipython:5.0.0-<grocker-version>
Direct wheel path
A wheel can also be directly passed to grocker to avoid the need to upload an artefact to build an image.
Grocker will switch to this mode if a
/ is present in the argument.
$ grocker build ./path/to/ipython-7.1.1-py3-none-any.whl --entrypoint ipython $ docker run --rm -ti ipython:7.1.1-<grocker-version>