2015-06-23 22:45:43 +02:00
|
|
|
# Distribution specific Dockerfiles
|
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
2015-06-23 22:48:37 +02:00
|
|
|
### Dockerfile name
|
2017-01-26 14:53:47 +01:00
|
|
|
|
|
|
|
The format should be `Dockerfile.{distribution name}`.
|
2015-06-23 22:48:37 +02:00
|
|
|
|
2015-06-23 22:45:43 +02:00
|
|
|
### Keep your images up-to-date
|
2017-01-26 14:53:47 +01:00
|
|
|
|
2015-06-23 22:45:43 +02:00
|
|
|
Use the distribution package manager to keep your image up-to-date.
|
|
|
|
|
2017-01-26 14:53:47 +01:00
|
|
|
### Labels
|
2015-06-23 22:45:43 +02:00
|
|
|
|
2017-01-26 14:53:47 +01:00
|
|
|
Use the following labels in your Dockerfile:
|
2015-06-23 22:45:43 +02:00
|
|
|
|
2017-01-26 14:53:47 +01:00
|
|
|
```
|
|
|
|
LABEL org.label-schema.name="docker-bench-security" \
|
|
|
|
org.label-schema.url="<YOUR GIT REPOSITORY HTTPS ADDRESS>" \
|
|
|
|
org.label-schema.vcs-url="<YOUR REPOSITORY HTTPS GIT ADDRESS"
|
|
|
|
```
|