File size: 760 Bytes
ae92dbb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Use Ubuntu as the base image
FROM ubuntu:latest

# Set environment variables
ENV DEBIAN_FRONTEND=noninteractive

# Update and install required packages
RUN apt-get update && \
    apt-get install -y qbittorrent-nox && \
    apt-get clean

# Create configuration directory and set up password
RUN mkdir -p /root/.config/qBittorrent && \
    echo "[Preferences]" > /root/.config/qBittorrent/qBittorrent.conf && \
    echo "WebUI\\Username=admin" >> /root/.config/qBittorrent/qBittorrent.conf && \
    echo "WebUI\\Password=\"admin\"" >> /root/.config/qBittorrent/qBittorrent.conf && \
    echo "WebUI\\Address=*" >> /root/.config/qBittorrent/qBittorrent.conf

# Expose port 7860
EXPOSE 7860

# Start qbittorrent-nox
CMD ["qbittorrent-nox", "--webui-port=7860"]