Compare commits

...

8 Commits
8 ... 37

Author SHA1 Message Date
sparklyballs 0d3d473a7e Merge pull request #10 from linuxserver/3.7
bump to alpine 3.7 and fix continuation lines
2017-12-17 00:15:35 +00:00
sparklyballs ef46a9a195 configure workaround no longer required 2017-12-09 00:50:11 +00:00
sparklyballs 6bc7f90c50 bump to alpine 3.7 and fix continuation lines 2017-12-06 19:12:27 +00:00
sparklyballs 879514949c Merge pull request #9 from linuxserver/cpu_cores
use cpu core routine
2017-11-29 13:46:24 +00:00
sparklyballs c33a1ce348 use cpu core routine 2017-11-27 18:10:22 +00:00
sparklyballs e6c8a325e5 Merge pull request #8 from linuxserver/curl_imagemagick-ver
Curl imagemagick ver
2017-07-29 00:00:53 +01:00
sparklyballs 995ef7f214 correct xz instead of gz in imagemgick curl 2017-07-24 08:38:59 +01:00
sparklyballs 05189f2125 curl version of imagemagick 2017-07-24 08:32:07 +01:00
2 changed files with 31 additions and 17 deletions
+27 -16
View File
@@ -1,16 +1,13 @@
FROM lsiobase/alpine.python:3.6
MAINTAINER sparklyballs,chbmb
FROM lsiobase/alpine.python:3.7
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
# package versions
ARG IMAGEMAGICK_VER="6.9.9-0"
# install build packages
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
file \
fontconfig-dev \
@@ -24,14 +21,14 @@ RUN \
libtool \
libwebp-dev \
libxml2-dev \
libxslt-dev \
make \
perl-dev \
python2-dev \
tiff-dev \
xz \
zlib-dev && \
# install runtime packages
echo "**** install runtime packages ****" && \
apk add --no-cache \
fontconfig \
freetype \
@@ -42,15 +39,18 @@ RUN \
libpng \
libwebp \
libxml2 \
libxslt \
tiff \
zlib && \
# compile imagemagic
echo "**** compile imagemagic ****" && \
IMAGEMAGICK_VER=$(curl --silent http://www.imagemagick.org/download/digest.rdf \
| grep ImageMagick-6.*tar.xz | sed 's/\(.*\).tar.*/\1/' \
| sed 's/^.*ImageMagick-/ImageMagick-/') && \
mkdir -p \
/tmp/imagemagick && \
curl -o \
/tmp/imagemagick-src.tar.xz -L \
"http://www.imagemagick.org/download/releases/ImageMagick-${IMAGEMAGICK_VER}.tar.xz" && \
"http://www.imagemagick.org/download/${IMAGEMAGICK_VER}.tar.xz" && \
tar xf \
/tmp/imagemagick-src.tar.xz -C \
/tmp/imagemagick --strip-components=1 && \
@@ -71,12 +71,24 @@ RUN \
--without-x \
--with-tiff \
--with-xml && \
make && \
echo "**** attempt to set number of cores available for make to use ****" && \
set -ex && \
CPU_CORES=$( < /proc/cpuinfo grep -c processor ) || echo "failed cpu look up" && \
if echo $CPU_CORES | grep -E -q '^[0-9]+$'; then \
: ;\
if [ "$CPU_CORES" -gt 7 ]; then \
CPU_CORES=$(( CPU_CORES - 3 )); \
elif [ "$CPU_CORES" -gt 5 ]; then \
CPU_CORES=$(( CPU_CORES - 2 )); \
elif [ "$CPU_CORES" -gt 3 ]; then \
CPU_CORES=$(( CPU_CORES - 1 )); fi \
else CPU_CORES="1"; fi && \
make -j $CPU_CORES && \
set +ex && \
make install && \
find / -name '.packlist' -o -name 'perllocal.pod' \
-o -name '*.bs' -delete && \
# install calibre-web
echo "**** install calibre-web ****" && \
mkdir -p \
/app/calibre-web && \
curl -o \
@@ -90,8 +102,7 @@ RUN \
requirements.txt && \
pip install --no-cache-dir -U -r \
optional-requirements.txt && \
# cleanup
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
+4 -1
View File
@@ -98,4 +98,7 @@ To reverse proxy with our Letsencrypt docker container use the following locatio
## Versions
+ **17.07.17:** Initial release
+ **06.12.17:** Rebase to alpine 3.7.
+ **27.11.17:** Use cpu core counting routine to speed up build time.
+ **24.07.17:** Curl version for imagemagick.
+ **17.07.17:** Initial release.