A minimal Docker image that provides a Python environment with
pip-tools
in order to lock requirements
files.
Simply mount your requirements file to /opt/requirements
and run the
container. The Docker
entrypoint is
pip-compile --generate-hashes
, for example,
docker run --rm \
--mount "source=${PWD},target=/opt/requirements,type=bind" \
midnighter/pip-compile:3.8-alpine3.12 \
--upgrade --verbose requirements.in
This will create a corresponding compiled .txt
file in the mounted directory;
in this example ./requirements.txt
.
Images are generated for the following environments. Please open an issue if you require others.
Tag | Python | Distribution |
---|---|---|
3.8-alpine3.12 | 3.8 | Alpine Linux 3.12 |
3.8-slim-buster | 3.8 | Debian Buster |
- Copyright © 2019, Moritz E. Beber.
- Free software licensed under the Apache Software License 2.0.