Skip to content

Commit

Permalink
Merge pull request #158 from matteosister/develop
Browse files Browse the repository at this point in the history
fixed alpine based dockerfile
  • Loading branch information
imunhatep authored Mar 28, 2019
2 parents 5322943 + b29d0d3 commit 48965bb
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
FROM php:7.2-alpine

RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
RUN apk update \
&& apk add git zlib-dev \
&& git config --global user.email "[email protected]" \
&& git config --global user.name "GitElephant tests"

RUN apt-get update && \
apt-get install -yqq git && \
git config --global user.email "[email protected]" && \
git config --global user.name "GitElephant tests" && \
rm -rf /var/lib/apt/lists/*

RUN apt-get update && \
apt-get install -yqq zlib1g-dev && \
docker-php-ext-install zip && \
rm -rf /var/lib/apt/lists/*
RUN php -r "readfile('https://getcomposer.org/installer');" > composer-setup.php \
&& php composer-setup.php \
&& php -r "unlink('composer-setup.php');" \
&& mv composer.phar /usr/local/bin/composer \
&& docker-php-ext-install zip

0 comments on commit 48965bb

Please sign in to comment.