While looking through the release pipeline code @Addshore noticed multiple RUNs in a row
https://github.com/wmde/wikibase-release-pipeline/blob/main/Docker/build/Mediawiki/Dockerfile#L58-L61
This will result in an inflated docker image size.
These RUNs should be combined.
Acceptance Criteria🏕️🌟:
- Optimize existing release pipeline dockerfiles to not include multiple RUNs in a row
- Enable the hadolint check for this https://github.com/hadolint/hadolint/wiki/DL3059 (ignoring any other currently failing checks)
Example hadolint running in github actions:
https://github.com/wbstack/api/blob/main/.github/workflows/docker.lint.yml
https://github.com/wbstack/api/blob/main/.hadolint.yml