Skip to main content

dockerignore-generate

Python (>=3.6) cli tool to automatically generate .dockerignore files

Install

pip install dockerignore-generate

Usage

In a directory with a Dockerfile

dockerignore-generate

will print out the contents of the generated .dockerignore file. Without arguments the docker build context is assumed to be the curret working directory.

Contexts and Dockerfiles

To speciify a specific context use the -c flag, and -f to speciify a Dockerfile, e.g.,

dockerignore-generate -f Dockerfile.custom  -c ../

To save a the .dockerignore file, use the -s flag, and -o to overwrite an existing file (file will be stored in the docker build context)

dockerignore-generate -f Dockerfile.custom  -c ../ -s
wrote ../.dockerignore

Metadata

Release files for dockerignore-generate 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dockerignore-generate 1.0.7
File Size Uploaded Provenance Actions
dockerignore-generate-1.0.7.tar.gz 10.4 kB Without provenance Details for dockerignore-generate-1.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dockerignore-generate 1.0.7
File Interpreter ABI Platform Actions
dockerignore_generate-1.0.7-py3.6.egg Legacy Egg format - - Details for dockerignore_generate-1.0.7-py3.6.egg

Total release size: 12.8 kB

Release files / dockerignore-generate-1.0.7.tar.gz

Download URL dockerignore-generate-1.0.7.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
401a80991590bef75045ff4c17d4f886f3604d37c0efec6b5a1718f0932ddb9b
BLAKE2b-256 checksum
How to use checksums
cb8f35c6d6031b7774f84c1df82cadcace1975a3058716366a426534671b459b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.6.5

Release files / dockerignore_generate-1.0.7-py3.6.egg

Download URL dockerignore_generate-1.0.7-py3.6.egg
Size 2.5 kB
Tags Egg
SHA-256 checksum
How to use checksums
8e934c9ccf213537c55a8f366fd5b09fa8a41386b382c01ea85e9e314029d19f
BLAKE2b-256 checksum
How to use checksums
0da867fa906ed2694c3aa298bb731a3dee206a364f70afbdaa229969debdccb4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.19.1 CPython/3.6.5

Security for dockerignore-generate 1.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page