Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
Reorder Dockerfile so future version upgrades are easier.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordancrawfordnz committed Sep 4, 2016
1 parent 647d6a9 commit 9632f39
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9632f39

Please sign in to comment.