Spaces:
Paused
Paused
File size: 1,030 Bytes
976c248 dfdcf91 aa49f24 dfdcf91 976c248 dae3a88 dfdcf91 5df8575 976c248 dae3a88 976c248 dae3a88 976c248 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | FROM python:3.12-slim
ENV PYTHONUNBUFFERED=1 \
QBT_PROFILE=/config \
QBITTORRENT_HOST=127.0.0.1 \
QBITTORRENT_PORT=8080 \
QBITTORRENT_SAVE_PATH=/downloads \
PORT=5000
RUN apt-get update \
&& apt-get install -y --no-install-recommends qbittorrent-nox aria2 rclone ca-certificates bash tini curl p7zip-full gcc libc6-dev \
&& rm -rf /var/lib/apt/lists/*
RUN useradd -m -u 1000 qbittorrent
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
COPY aria2.py .
COPY bot ./bot
COPY static ./static
COPY templates ./templates
COPY qbittorrent/config/qBittorrent.conf /defaults/qBittorrent.conf
COPY entrypoint.sh /entrypoint.sh
RUN mkdir -p /app/uploads /config /downloads /defaults \
&& sed -i 's/\r$//' /entrypoint.sh \
&& chown -R qbittorrent:qbittorrent /app /config /downloads /defaults /entrypoint.sh \
&& chmod +x /entrypoint.sh
USER qbittorrent
EXPOSE 5000
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
|