mirror of
https://github.com/linuxserver/docker-lychee.git
synced 2026-02-05 19:09:11 +08:00
43 lines
784 B
Docker
43 lines
784 B
Docker
FROM lsiobase/alpine.nginx:3.5
|
||
MAINTAINER chbmb
|
||
|
||
# set version label
|
||
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
|
||
RUN \
|
||
apk add --no-cache --virtual=build-dependencies \
|
||
curl \
|
||
tar && \
|
||
curl -o \
|
||
/tmp/lychee.tar.gz -L \
|
||
https://github.com/electerious/Lychee/archive/master.tar.gz && \
|
||
mkdir -p \
|
||
/usr/share/webapps/lychee && \
|
||
tar xf \
|
||
/tmp/lychee.tar.gz -C \
|
||
/usr/share/webapps/lychee --strip-components=1 && \
|
||
|
||
# cleanup
|
||
apk del --purge \
|
||
build-dependencies && \
|
||
rm -rf \
|
||
/tmp/*
|
||
|
||
# add local files
|
||
COPY root/ /
|
||
|
||
# ports and volumes
|
||
EXPOSE 80
|
||
VOLUME /config
|