fix(app/action): add --rm to auto-clean docker images

This commit is contained in:
lowlighter
2022-04-24 13:17:54 -04:00
parent 5e3460fa0b
commit 1bf3b92544
7 changed files with 305 additions and 305 deletions

View File

@@ -8,7 +8,7 @@ A machine with a recent version of [docker](https://www.docker.com/) is required
The command to use is similar to the following:
```shell
docker run --env INPUT_TOKEN=**** --env INPUT_USER=user --volume=/tmp:/renders ghcr.io/lowlighter/metrics:latest
docker run --rm --env INPUT_TOKEN=**** --env INPUT_USER=user --volume=/tmp:/renders ghcr.io/lowlighter/metrics:latest
```
To pass parameters, pass environment variable with the same name as the corresponding action option but in uppercase and prefixed with `INPUT_`.

View File

@@ -104,7 +104,7 @@ PUBLISHED_PORT=80
And start the container using the following command:
```shell
docker run --entrypoint="" -p=127.0.0.1:$PUBLISHED_PORT:$SERVICE_PORT --volume=$SETTINGS:/metrics/settings.json ghcr.io/lowlighter/metrics:$VERSION npm start
docker run --rm --entrypoint="" -p=127.0.0.1:$PUBLISHED_PORT:$SERVICE_PORT --volume=$SETTINGS:/metrics/settings.json ghcr.io/lowlighter/metrics:$VERSION npm start
```
## 4 Add images to your profile `README.md`