docker-jackett/Dockerfile
2019-02-05 13:32:34 +00:00

51 lines
1.3 KiB
Docker
Raw 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/mono:5.14
# set version label
ARG BUILD_DATE
ARG VERSION
ARG JACKETT_RELEASE
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# environment settings
ARG DEBIAN_FRONTEND="noninteractive"
ENV XDG_DATA_HOME="/config" \
XDG_CONFIG_HOME="/config"
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
wget \
jq && \
echo "**** install jackett ****" && \
mkdir -p \
/app/Jackett && \
if [ -z ${JACKETT_RELEASE+x} ]; then \
JACKETT_RELEASE=$(curl -sX GET "https://api.github.com/repos/Jackett/Jackett/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
jackett_url=$(curl -s https://api.github.com/repos/Jackett/Jackett/releases/tags/"${JACKETT_RELEASE}" \
|jq -r '.assets[].browser_download_url' |grep Mono) && \
curl -o \
/tmp/jacket.tar.gz -L \
${jackett_url} && \
tar xf \
/tmp/jacket.tar.gz -C \
/app/Jackett --strip-components=1 && \
echo "**** fix for host id mapping error ****" && \
chown -R root:root /app/Jackett && \
echo "**** cleanup ****" && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /
# ports and volumes
VOLUME /config /downloads
EXPOSE 9117