Metadata-Version: 2.4
Name: container-source-policy
Version: 0.4.0
Summary: Generate Buildx container source policy file for a given Dockerfile
Project-URL: Homepage, https://github.com/tinovyatkin/container-source-policy
Author-email: Konstantin Vyatkin <tino@vtkn.io>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Topic :: Software Development :: Version Control :: Git
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# container-source-policy

Generate a Docker BuildKit **source policy** file by parsing Dockerfiles and pinning `FROM` images to
immutable digests.

This PyPI package ships a small Python launcher plus a prebuilt `container-source-policy` binary for your platform.

## Install

Recommended (isolated):

```bash
pipx install container-source-policy
```

Or into the current environment:

```bash
python -m pip install container-source-policy
```

## Usage

```bash
container-source-policy pin --stdout Dockerfile > source-policy.json
EXPERIMENTAL_BUILDKIT_SOURCE_POLICY=source-policy.json docker buildx build -t my-image:dev .
```

## More info

See the upstream repository for full documentation:
<https://github.com/tinovyatkin/container-source-policy>
