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.
Reorder Dockerfile so future version upgrades are easier.
- Loading branch information
1 parent
647d6a9
commit 9632f39
Showing
1 changed file
with
11 additions
and
10 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 |
---|---|---|
|
@@ -3,12 +3,20 @@ | |
FROM resin/rpi-raspbian:jessie | ||
MAINTAINER Jordan Crawford <[email protected]> | ||
|
||
# Install 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 | ||
|
||
# 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/* | ||
|
||
# Deluge version. | ||
ARG DELUGE_VERSION=1.3.13 | ||
|
||
# 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 | ||
|
||
# Install Deluge. | ||
WORKDIR / | ||
RUN wget http://download.deluge-torrent.org/source/deluge-${DELUGE_VERSION}.tar.gz | ||
RUN tar -zxvf deluge-${DELUGE_VERSION}.tar.gz | ||
|
@@ -18,13 +26,6 @@ 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 | ||
|