This repository provides Docker images for the dotenv-linter tool, packaged in two versions Alpine and BusyBox:
- Alpine version: Includes additional utilities
gitandcurlproviding more flexibility. - BusyBox version: A minimalistic image containing only
dotenv-linterand theBusyBoxtoolkit.
Please note that if you only need
dotenv-linter, it's recommended to use the official Docker image - dotenvlinter/dotenv-linter.
The Docker images follow the same versioning as the official dotenv-linter releases. They are published using the
following tags:
zavoloklom/dotenv-linter:VERSION-alpine- whereVERSIONis the version of thedotenv-linterpackage.zavoloklom/dotenv-linter:latest-alpine- latest version of thedotenv-linterpackage.zavoloklom/dotenv-linter:alpine- same aslatest-alpine.
zavoloklom/dotenv-linter:VERSION-busybox- whereVERSIONis the version of thedotenv-linterpackage.zavoloklom/dotenv-linter:latest-busybox- latest version of thedotenv-linterpackage.zavoloklom/dotenv-linter:busybox- same aslatest-busybox.
New Docker images will be released whenever a new version of dotenv-linter is published.
You can use either the Alpine-based or BusyBox-based Docker images to run dotenv-linter. Below are examples of how to
pull the images and run dotenv-linter commands inside the container.
-
Pull the image:
docker pull zavoloklom/dotenv-linter:3.3.0-alpine
-
Run the linter:
To run the
dotenv-linterusing the Alpine-based image, use the following command:docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-alpine <COMMAND> <ARGS>
Replace
<COMMAND>and<ARGS>with the appropriatedotenv-lintercommand and arguments.For example, to check the
.envfile in your current directory:docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-alpine check .envThis command mounts the current directory (
${PWD}) into/appinside the container and runsdotenv-linteron the.envfile.
-
Pull the image:
docker pull zavoloklom/dotenv-linter:3.3.0-busybox
-
Run the linter:
For a smaller footprint, use the BusyBox version. The command structure is the same:
docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-busybox check .env
For more examples and information on how dotenv-linter works, refer to
the official documentation.
This project is licensed under the MIT License. See the LICENSE file for more information.
Please refer to original LICENSE for more
information about dotenv-linter licensing terms.