Skip to main content

automatically generate dockerignore data

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dockerignore-generate-1.0.7.tar.gz (10.4 kB view hashes)

Uploaded Source

Built Distribution

dockerignore_generate-1.0.7-py3.6.egg (2.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page