This repository has been archived by the owner on Oct 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile from source and run as a non-root user (uid=1000).
- Loading branch information
1 parent
8fb4056
commit 4da1eca
Showing
2 changed files
with
32 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,36 @@ | ||
# Sets up a Deluge server and web client. | ||
|
||
FROM resin/rpi-raspbian:jessie | ||
|
||
MAINTAINER Jordan Crawford <[email protected]> | ||
|
||
# Setup deluged, deluge-web and deluge-console. | ||
RUN apt-get update; apt-get install deluged deluge-web deluge-console -y | ||
# Deluge version. | ||
ARG DELUGE_VERSION=1.3.12 | ||
|
||
# Install deluge required packages. | ||
RUN apt-get update; apt-get install wget python python-twisted python-openssl python-setuptools intltool python-xdg python-chardet geoip-database python-libtorrent python-notify python-pygame python-glade2 librsvg2-common xdg-utils python-mako -y | ||
|
||
WORKDIR / | ||
RUN wget http://download.deluge-torrent.org/source/deluge-${DELUGE_VERSION}.tar.gz | ||
RUN tar -zxvf deluge-${DELUGE_VERSION}.tar.gz | ||
RUN rm deluge-${DELUGE_VERSION}.tar.gz | ||
RUN cd deluge-${DELUGE_VERSION}; python setup.py build; python setup.py install | ||
|
||
# Expose the deluge control port and the web UI port. | ||
EXPOSE 58846 8112 | ||
|
||
# Setup a user. | ||
RUN adduser --system -u 1000 deluge | ||
|
||
# Clean up. | ||
RUN apt-get clean | ||
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# Setup volumes. | ||
VOLUME /config | ||
VOLUME /data | ||
|
||
# Add the start script. | ||
ADD start.sh /root/start.sh | ||
ADD start.sh /start.sh | ||
|
||
# Run the start script on boot. | ||
CMD ["/root/start.sh"] | ||
CMD ["/start.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters