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

saurabheights/pip-compile

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Environment for pip-compile

This work is forked from midnighter.

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] (https://docs.docker.com/engine/reference/builder/#entrypoint) is pip-compile --generate-hashes, for example,

docker run --rm \
    --mount "source=${PWD},target=/opt/requirements,type=bind" \
    saurabheights/pip-compile:3.8-alpine \
    --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-alpine 3.8 Alpine Linux 3.12
3.8-bullseye 3.8
3.8-bookworm 3.8
3.9-alpine 3.9
3.9-bullseye 3.9
3.9-bookworm 3.9
3.10-alpine 3.10
3.10-bullseye 3.10
3.10-bookworm 3.10
3.11-alpine 3.11
3.11-bullseye 3.11
3.11-bookworm 3.11
3.12-alpine 3.12
3.12-bullseye 3.12
3.12-bookworm 3.12

Copyright

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%