# 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