Skip to content

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

License

Notifications You must be signed in to change notification settings

Midnighter/pip-compile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Tag Python Distribution
3.8-alpine3.12 3.8 Alpine Linux 3.12
3.8-slim-buster 3.8 Debian Buster

Copyright

About

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

Topics

Resources

License

Stars

Watchers

Forks