Merged in DCD-1271-docker-linting (pull request #92)

DCD-1271: Add hadolint configuration

Approved-by: Adam Brokes
Approved-by: Minh Tran
This commit is contained in:
Steve Smith 2021-04-16 02:47:21 +00:00
commit 02796ac817
3 changed files with 11 additions and 0 deletions

9
.hadolint.yaml Normal file
View File

@ -0,0 +1,9 @@
ignored:
- DL3005 # Package upgrades
- DL3017 # Package upgrades
- DL3006 # Version tagging
- DL3008 # Pinning
- DL3018 # Pinning
- DL4006 # Pipefail
- SC2006 # Quoting
- SC2016 # Quoting

View File

@ -25,6 +25,7 @@ CMD ["/entrypoint.py"]
ENTRYPOINT ["/usr/bin/tini", "--"]
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends fontconfig fonts-noto python3 python3-jinja2 tini \
&& apt-get clean autoclean && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*

View File

@ -23,6 +23,7 @@ CMD ["/entrypoint.py"]
ENTRYPOINT ["/sbin/tini", "--"]
RUN apk update \
&& apk upgrade \
&& apk add --no-cache ca-certificates wget curl openssh bash procps openssl perl tini python3 py3-jinja2 ttf-dejavu `apk search -qe 'font-noto*'` \
&& rm -f /var/cache/apk/APKINDEX*