Skip to content

Running the CLI command in Docker

Tom de Wit edited this page Feb 5, 2021 · 1 revision

Running the CLI command in Docker

To build the docker image:

docker build -t converter .

To use the image to convert

docker run --rm -t -v $(pwd):/project -w /project converter convert --phpstan

This will mount the current directory in the container under /project, and execute the converter. This will also remove the container after use.