diff --git a/.drone.yml b/.drone.yml index d17afa8..e5b6b97 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,9 @@ name: default steps: +- name: validate + image: bunix42/pre-commit + - name: nextcloud-22-fpm image: plugins/docker settings: diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a340203 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pre-commit-cache \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..33210a3 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: + - repo: https://github.com/hadolint/hadolint + rev: master + hooks: + - id: hadolint + args: [--ignore, DL3008] \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 25f441f..e707509 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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/* \ No newline at end of file