From e93e1001a20655bc7d18cf8ece494958071fc590 Mon Sep 17 00:00:00 2001 From: sparklyballs Date: Wed, 3 May 2017 09:09:11 +0100 Subject: [PATCH] switch to repo pinning style to add packages, use repo imagick --- Dockerfile | 65 +++++++++++++++--------------------------------------- README.md | 1 + 2 files changed, 19 insertions(+), 47 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9efd672..98dbb2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,39 +6,30 @@ ARG BUILD_DATE ARG VERSION LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}" -# install build packages +# add repositories RUN \ - apk add --no-cache --virtual=build-dependencies \ - autoconf \ - curl \ - file \ - g++ \ - gcc \ - imagemagick-dev \ - libtool \ - make && \ - apk add --no-cache \ - --repository http://nl.alpinelinux.org/alpine/edge/community \ - php7-dev && \ + echo "@edge http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \ + echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \ -# install runtime packages +# install packages apk add --no-cache \ - --repository http://nl.alpinelinux.org/alpine/edge/main \ - libwebp && \ - apk add --no-cache \ - imagemagick \ + curl \ mc \ re2c && \ apk add --no-cache \ - --repository http://nl.alpinelinux.org/alpine/edge/community \ - php7-curl \ - php7-exif \ - php7-gd \ - php7-mbstring \ - php7-mysqlnd \ - php7-zip && \ + imagemagick@edge \ + libwebp@edge && \ + apk add --no-cache \ + php7-curl@community \ + php7-exif@community \ + php7-gd@community \ + php7-imagick@community \ + php7-mbstring@community \ + php7-mysqli@community \ + php7-mysqlnd@community \ + php7-zip@community && \ -# install lychee +# install lychee mkdir -p \ /usr/share/webapps/lychee && \ lychee_tag=$(curl -sX GET "https://api.github.com/repos/electerious/Lychee/releases/latest" \ @@ -50,27 +41,7 @@ RUN \ /tmp/lychee.tar.gz -C \ /usr/share/webapps/lychee --strip-components=1 && \ -# install php imagemagick - mkdir -p \ - /tmp/imagick-src && \ - curl -o \ - /tmp/imagick.tgz -L \ - https://pecl.php.net/get/imagick && \ - tar xf \ - /tmp/imagick.tgz -C \ - /tmp/imagick-src --strip-components=1 && \ - cd /tmp/imagick-src && \ - phpize7 && \ - ./configure \ - --prefix=/usr \ - --with-php-config=/usr/bin/php-config7 && \ - make && \ - make install && \ - echo "extension=imagick.so" > /etc/php7/conf.d/00_imagick.ini && \ - -# cleanup - apk del --purge \ - build-dependencies && \ +# cleanup rm -rf \ /tmp/* diff --git a/README.md b/README.md index 03ccab2..e256d51 100644 --- a/README.md +++ b/README.md @@ -79,4 +79,5 @@ Setup mysql/mariadb and account via the webui, more info at [lychee][appurl]. ## Versions ++ **03.05.17:** Use repo pinning to better solve dependencies, use repo version of php7-imagick. + **12.02.17:** Initial Release.