qbittorrent

> adding Dockerfile for qbittorrent
This commit is contained in:
Eugene Amos 2023-11-15 20:03:15 -08:00
parent d637b5a55c
commit 4d5fa42bef
2 changed files with 23 additions and 1 deletions

2
.gitignore vendored
View File

@ -2,4 +2,4 @@
inspector/logs/ inspector/logs/
.vs .vs
assets/testing assets/testing/

22
qbittorrent/Dockerfile Normal file
View File

@ -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