mirror of
https://github.com/linuxserver/docker-lychee.git
synced 2026-02-05 19:09:11 +08:00
blah
This commit is contained in:
parent
9a3238003d
commit
567fd061cd
65
Dockerfile
65
Dockerfile
@ -6,37 +6,66 @@ ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
|
||||
# install packages
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
php7-curl \
|
||||
php7-exif \
|
||||
php7-mysqlnd \
|
||||
php7-zip
|
||||
|
||||
# install lychee
|
||||
# package version
|
||||
ARG PHP_IMAGICK_VER="3.4.2"
|
||||
|
||||
# install build packages
|
||||
RUN \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
autoconf \
|
||||
curl \
|
||||
tar && \
|
||||
file \
|
||||
g++ \
|
||||
gcc \
|
||||
imagemagick-dev \
|
||||
libtool \
|
||||
make \
|
||||
php7-dev && \
|
||||
|
||||
# install runtime packages
|
||||
apk add --no-cache \
|
||||
imagemagick \
|
||||
php7-curl \
|
||||
php7-exif \
|
||||
php7-gd \
|
||||
php7-mysqlnd \
|
||||
php7-zip && \
|
||||
|
||||
mkdir -p \
|
||||
/usr/share/webapps/lychee && \
|
||||
curl -o \
|
||||
/tmp/lychee.tar.gz -L \
|
||||
https://github.com/electerious/Lychee/archive/master.tar.gz && \
|
||||
mkdir -p \
|
||||
/usr/share/webapps/lychee && \
|
||||
https://github.com/electerious/Lychee/archive/master.tar.gz && \
|
||||
tar xf \
|
||||
/tmp/lychee.tar.gz -C \
|
||||
/usr/share/webapps/lychee --strip-components=1 && \
|
||||
/usr/share/webapps/lychee --strip-components=1 && \
|
||||
# install php imagemagick
|
||||
mkdir -p \
|
||||
/tmp/imagick-src && \
|
||||
curl -o \
|
||||
/tmp/imagick.tgz -L \
|
||||
"http://pecl.php.net/get/imagick-${PHP_IMAGICK_VER}.tgz" && \
|
||||
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
|
||||
# cleanup
|
||||
apk del --purge \
|
||||
build-dependencies && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
/tmp/*
|
||||
|
||||
# add local files
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
EXPOSE 80
|
||||
VOLUME /config
|
||||
VOLUME /config /media
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user