fix(app/action): add --rm to auto-clean docker images
This commit is contained in:
@@ -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_`.
|
||||
|
||||
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user