File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,66 +6,33 @@ ARG BUILD_DATE
66ARG VERSION
77LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
88
9- # install build packages
9+ # add repositories
1010RUN \
11- apk add --no-cache --virtual=build-dependencies \
12- autoconf \
13- curl \
14- file \
15- g++ \
16- gcc \
17- imagemagick-dev \
18- libtool \
19- make && \
20- apk add --no-cache --virtual=build-dependencies \
21- --repository http://nl.alpinelinux.org/alpine/edge/community \
22- php7-dev && \
11+ echo "@edge http://nl.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories && \
12+ echo "@community http://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories && \
2313
24- # install runtime packages
14+ # install packages
2515 apk add --no-cache \
2616 curl \
27- imagemagick \
2817 lynx \
2918 re2c \
3019 unzip \
3120 wget && \
3221 apk add --no-cache \
33- --repository http://nl.alpinelinux.org/alpine/ edge/main \
34- libwebp && \
22+ imagemagick@ edge \
23+ libwebp@edge && \
3524 apk add --no-cache \
36- --repository http://nl.alpinelinux.org/alpine/edge/community \
37- php7-apcu \
38- php7-cgi \
39- php7-exif \
40- php7-gd \
41- php7-mysqlnd \
42- php7-pear \
43- php7-xmlrpc \
44- php7-xsl && \
45-
46- # install php imagemagick
47- mkdir -p \
48- /tmp/imagick-src && \
49- curl -o \
50- /tmp/imagick.tgz -L \
51- https://pecl.php.net/get/imagick && \
52- tar xf \
53- /tmp/imagick.tgz -C \
54- /tmp/imagick-src --strip-components=1 && \
55- cd /tmp/imagick-src && \
56- phpize7 && \
57- ./configure \
58- --prefix=/usr \
59- --with-php-config=/usr/bin/php-config7 && \
60- make && \
61- make install && \
62- echo "extension=imagick.so" > /etc/php7/conf.d/00_imagick.ini && \
63-
64- # cleanup
65- apk del --purge \
66- build-dependencies && \
67- rm -rf \
68- /tmp/*
25+ php7-apcu@community \
26+ php7-cgi@community \
27+ php7-dom@community \
28+ php7-exif@community \
29+ php7-gd@community \
30+ php7-imagick@community \
31+ php7-mysqli@community \
32+ php7-mysqlnd@community \
33+ php7-pear@community \
34+ php7-xmlrpc@community \
35+ php7-xsl@community
6936
7037# copy local files
7138COPY root/ /
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ The easiest way to edit the configuration file is to enable local files editor f
8585
8686## Versions
8787
88+ + ** 03.05.17:** Use repo pinning to better solve dependencies, use repo version of php7-imagick.
8889+ ** 20.04.17:** Add php7-exif package, thanks iiska
8990+ ** 23.02.17:** Rebase to alpine linux 3.5 and nginx.
9091+ ** 14.10.16:** Add version layer information.
You can’t perform that action at this time.
0 commit comments