diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f59fba4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,21 @@ +FROM alpine:edge + +ARG VERSION + +RUN apk add --no-cache \ + -X http://dl-cdn.alpinelinux.org/alpine/edge/testing \ + qbittorrent-nox=${VERSION} + +ADD --chown=1000:100 qBittorrent.conf /qBittorrent/config/ + +RUN chmod -R g+w /qBittorrent + +EXPOSE 6881 6881/udp 8080 + +ENV QBT_WEBUI_PORT=8080 + +VOLUME [ "/downloads" ] + +ENTRYPOINT [ "/usr/bin/qbittorrent-nox" ] + +CMD [ "--profile=/" ] diff --git a/qBittorrent.conf b/qBittorrent.conf new file mode 100644 index 0000000..2f8b70b --- /dev/null +++ b/qBittorrent.conf @@ -0,0 +1,15 @@ +[AutoRun] +enabled=false +program= + +[LegalNotice] +Accepted=true + +[Preferences] +Connection\UPnP=false +Connection\PortRangeMin=6881 +Downloads\SavePath=/downloads/ +Downloads\ScanDirsV2=@Variant(\0\0\0\x1c\0\0\0\0) +Downloads\TempPath=/downloads/incomplete/ +WebUI\Address=* +WebUI\ServerDomains=*