add hadolint

This commit is contained in:
Hanjo Meinhardt 2022-05-05 13:43:13 +02:00
parent 82c2913543
commit 07d4cb37c0
4 changed files with 12 additions and 2 deletions

View File

@ -5,6 +5,9 @@ name: default
steps:
- name: validate
image: bunix42/pre-commit
- name: nextcloud-22-fpm
image: plugins/docker
settings:

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
pre-commit-cache

6
.pre-commit-config.yaml Normal file
View File

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/hadolint/hadolint
rev: master
hooks:
- id: hadolint
args: [--ignore, DL3008]

View File

@ -3,6 +3,6 @@ FROM nextcloud:${NEXTCLOUD_VERSION}
LABEL org.opencontainers.image.authors="hanjo@bunix.de"
RUN apt-get update && apt-get install -y \
python3 \
RUN apt-get update \
&& apt-get install --no-install-recommends -y python3 \
&& rm -rf /var/lib/apt/lists/*