Automatically generates pip requirement files based on imports in your Python project.
1.5K
This image provides a minimal Python 3.12 environment based on Alpine Linux, bundled with a custom-built version of Git (v2.50.0) and the pipreqs-action. It is designed for use with the GitHub Action jfheinrich-eu/pipreqs-action.
/opt/gitdocker pull jfheinrich/pipreqs-action:latest
docker run --rm -v $(pwd):/workspace jfheinrich/pipreqs-action:latest
PATH includes /opt/git/bin so the custom Git is used by defaultLD_LIBRARY_PATH includes /opt/git/lib for Git dependenciesPYTHONPATH configured for optimal Python executionlatest - Latest stable version with Python 3.12 and Git 2.50.0v4 - Specific version tag for reproducible buildsname: Generate Requirements
on: [push]
jobs:
pipreqs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jfheinrich-eu/pipreqs-action@v4
with:
REQUIREMENTS_PATH: requirements.txt
PROJECT_PATH: .
RECURSIVE: true
FROM jfheinrich/pipreqs-action:latest
# Add your custom Python dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# Add your application
COPY . /app
WORKDIR /app
CMD ["python3", "your_script.py"]
This image is provided under the MIT License.
Included Software Licenses:
Maintainer: Jörg Heinrich Email: [email protected] GitHub: jfheinrich-eu/pipreqs-action
Please report issues and feature requests via GitHub Issues.
Content type
Image
Digest
sha256:4a1206ffc…
Size
87.3 MB
Last updated
about 1 year ago
docker pull jfheinrich/pipreqs-action