docker-jackett/Dockerfile
2016-08-06 06:37:29 +01:00

41 lines
829 B
Docker
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM lsiobase/alpine
MAINTAINER sparklyballs
# environment settings
ENV XDG_DATA_HOME="/config" \
XDG_CONFIG_HOME="/config"
# install packages
RUN \
apk add --no-cache \
curl \
libcurl \
tar \
wget && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
mono
# install jackett
RUN \
mkdir -p \
/app/Jackett && \
jack_tag=$(curl -sX GET "https://api.github.com/repos/Jackett/Jackett/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
curl -o \
/tmp/jacket.tar.gz -L \
https://github.com/Jackett/Jackett/releases/download/$jack_tag/Jackett.Binaries.Mono.tar.gz && \
tar xvf /tmp/jacket.tar.gz -C \
/app/Jackett --strip-components=1 && \
# cleanup
rm -rf \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 9117