From 9f3506e2131159e759c96713dd876885a540956f Mon Sep 17 00:00:00 2001 From: Stephen Tallowitz Date: Thu, 25 Apr 2019 21:16:30 +0200 Subject: [PATCH] First version of docker image --- .pre-commit-config.yaml | 16 ++++++++++++++++ Dockerfile | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 .pre-commit-config.yaml create mode 100644 Dockerfile diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..1ec20dd --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +--- +fail_fast: false +repos: + - repo: https://github.com/digitalpulp/pre-commit-php + rev: 1.3.0 + hooks: + - id: php-cbf + verbose: true + stages: [manual] + types: [php] + - repo: https://github.com/digitalpulp/pre-commit-php + rev: 1.3.0 + hooks: + - id: php-cs + verbose: true + types: [php] diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb2e0b9 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM petzi/pre-commit:1.15.2-7 +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + php-codesniffer \ + && rm -rf /var/lib/apt/lists/* +COPY .pre-commit-config.yaml /