docker-jackett/Dockerfile

49 lines
1.0 KiB
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
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
# 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/main \
python2 && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
mono && \
# install jackett
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 xf \
/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