Sign inSign up

midnighter/pip-compile

By midnighter

•Updated almost 6 years ago

Image
0

1.6K

midnighter/pip-compile repository overview

⁠Minimal Environment for pip-compile

Docker image CI Docker image pulls License

A minimal Docker image that provides a Python environment with pip-tools⁠ in order to lock requirements files.

⁠Usage

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.

⁠Python Environments

Images are generated for the following environments. Please open an issue⁠ if you require others.

TagPythonDistribution
3.8-alpine3.123.8Alpine Linux 3.12⁠
3.8-slim-buster3.8Debian Buster⁠

Tag summary

Content type

Image

Digest

Size

156.9 MB

Last updated

almost 6 years ago

docker pull midnighter/pip-compile:3.8-alpine3.12_2020-11-15