mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Better wording about hadolint ignore
This commit is contained in:
@@ -59,10 +59,9 @@ The following rules are ignored by default for all images in the `.hadolint.yaml
|
|||||||
- [`DL3013`][dl3013]: We always install the latest packages using `pip`
|
- [`DL3013`][dl3013]: We always install the latest packages using `pip`
|
||||||
|
|
||||||
The preferred way to ignore other rules is to flag them in the `Dockerfile`.
|
The preferred way to ignore other rules is to flag them in the `Dockerfile`.
|
||||||
|
You can use a special comment directly above the Dockerfile instruction you want to make an exception for.
|
||||||
> It is also possible to ignore rules by using a special comment directly above the Dockerfile instruction you want to make an exception for.
|
Ignore rule comments look like `# hadolint ignore=DL3001,SC1081`.
|
||||||
> Ignore rule comments look like `# hadolint ignore=DL3001,SC1081`.
|
For example:
|
||||||
> For example:
|
|
||||||
|
|
||||||
```dockerfile
|
```dockerfile
|
||||||
FROM ubuntu
|
FROM ubuntu
|
||||||
|
Reference in New Issue
Block a user