Skip to content

Commit

Permalink
Switch to Alpine image
Browse files Browse the repository at this point in the history
  • Loading branch information
devste committed May 11, 2019
1 parent 9f3506e commit 50cf5d3
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
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/*
FROM petzi/pre-commit:1.15.2-9
RUN apk add --no-cache \
php7-pear \
php7-openssl \
php7-simplexml \
php7-tokenizer \
php7-xmlwriter
RUN pear channel-update pear.php.net
RUN pear install --onlyreqdeps PHP_CodeSniffer
COPY .pre-commit-config.yaml /

0 comments on commit 50cf5d3

Please sign in to comment.