qb / Dockerfile
freesir's picture
Create Dockerfile
ae92dbb verified
raw
history blame contribute delete
760 Bytes
# 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"]