From 2e68725ea473360df614ab8b8b0ae4e4807a4031 Mon Sep 17 00:00:00 2001 From: Artjoms Suharevs Date: Thu, 28 Mar 2019 13:57:55 +0200 Subject: [PATCH] - fixed Dockerfile for alpine image --- Dockerfile | 23 +++++++++-------------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3d1df1f5..a9b52ea8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 "test@gitelephant.org" \ + && git config --global user.name "GitElephant tests" -RUN apt-get update && \ - apt-get install -yqq git && \ - git config --global user.email "test@gitelephant.org" && \ - 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