30 lines
725 B
Docker
30 lines
725 B
Docker
FROM debian:12
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
RUN adduser qbittorrent-nox
|
|
|
|
RUN apt update && apt install qbittorrent-nox supervisor -y \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN mkdir -p /var/log/supervisor && mkdir -p /home/qbittorrent-nox/Downloads/temp \
|
|
&& mkdir -p /home/qbittorent-nox/.config \
|
|
&& chown -R qbittorrent-nox:qbittorrent-nox /home/qbittorrent-nox
|
|
|
|
COPY start-qbit.sh /start-qbit.sh
|
|
|
|
RUN chmod +x /start-qbit.sh
|
|
|
|
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
|
|
|
VOLUME ["/home/qbittorent-nox/.config", "/home/qbittorent-nox/Downloads"]
|
|
|
|
EXPOSE 8080/tcp
|
|
|
|
EXPOSE 50000/tcp
|
|
|
|
EXPOSE 50000/udp
|
|
|
|
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
|