From 4d5fa42bef820c38cfb9a3a050e112d3eb0d9db1 Mon Sep 17 00:00:00 2001 From: Eugene Amos Date: Wed, 15 Nov 2023 20:03:15 -0800 Subject: [PATCH] qbittorrent > adding Dockerfile for qbittorrent --- .gitignore | 2 +- qbittorrent/Dockerfile | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 qbittorrent/Dockerfile diff --git a/.gitignore b/.gitignore index c80d089..052ae37 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,4 @@ inspector/logs/ .vs -assets/testing +assets/testing/ diff --git a/qbittorrent/Dockerfile b/qbittorrent/Dockerfile new file mode 100644 index 0000000..ebab107 --- /dev/null +++ b/qbittorrent/Dockerfile @@ -0,0 +1,22 @@ + +# Use the linuxserver/qbittorrent image as a base +FROM linuxserver/qbittorrent:latest + +# Install Python3 and pip3 using apk +RUN apk update && \ + apk add --no-cache python3 py3-pip + +# Create a Python virtual environment and install qbittorrent-api +RUN python3 -m venv /opt/venv && \ + . /opt/venv/bin/activate && \ + pip3 install --upgrade pip && \ + pip3 install qbittorrent-api + +# Ensure commands run inside the virtual environment +ENV PATH="/opt/venv/bin:$PATH" + +# Any other customizations can be added here + + + +