mirror of
https://github.com/linuxserver/docker-jackett.git
synced 2026-02-06 03:27:52 +08:00
41 lines
829 B
Docker
41 lines
829 B
Docker
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
|