This repository provides Docker images for the dotenv-linter tool, packaged in two versions Alpine and BusyBox:
- Alpine version: Includes additional utilities
git
andcurl
providing more flexibility. - BusyBox version: A minimalistic image containing only
dotenv-linter
and theBusyBox
toolkit.
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
- whereVERSION
is the version of thedotenv-linter
package.zavoloklom/dotenv-linter:latest-alpine
- latest version of thedotenv-linter
package.zavoloklom/dotenv-linter:alpine
- same aslatest-alpine
.
zavoloklom/dotenv-linter:VERSION-busybox
- whereVERSION
is the version of thedotenv-linter
package.zavoloklom/dotenv-linter:latest-busybox
- latest version of thedotenv-linter
package.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-linter
using 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-linter
command and arguments.For example, to check the
.env
file in your current directory:docker run --rm -v ${PWD}:/app zavoloklom/dotenv-linter:3.3.0-alpine check .env
This command mounts the current directory (
${PWD}
) into/app
inside the container and runsdotenv-linter
on the.env
file.
-
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.