Create Dockerfile
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use Ubuntu as the base image
|
2 |
+
FROM ubuntu:latest
|
3 |
+
|
4 |
+
# Set environment variables
|
5 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
+
|
7 |
+
# Update and install required packages
|
8 |
+
RUN apt-get update && \
|
9 |
+
apt-get install -y qbittorrent-nox && \
|
10 |
+
apt-get clean
|
11 |
+
|
12 |
+
# Create configuration directory and set up password
|
13 |
+
RUN mkdir -p /root/.config/qBittorrent && \
|
14 |
+
echo "[Preferences]" > /root/.config/qBittorrent/qBittorrent.conf && \
|
15 |
+
echo "WebUI\\Username=admin" >> /root/.config/qBittorrent/qBittorrent.conf && \
|
16 |
+
echo "WebUI\\Password=\"admin\"" >> /root/.config/qBittorrent/qBittorrent.conf && \
|
17 |
+
echo "WebUI\\Address=*" >> /root/.config/qBittorrent/qBittorrent.conf
|
18 |
+
|
19 |
+
# Expose port 7860
|
20 |
+
EXPOSE 7860
|
21 |
+
|
22 |
+
# Start qbittorrent-nox
|
23 |
+
CMD ["qbittorrent-nox", "--webui-port=7860"]
|