forked from obi12341/docker-pyload
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (34 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:trusty
MAINTAINER Patrick Oberdorf "[email protected]"
# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list
RUN echo "deb-src http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y python \
python-pycurl \
python-crypto \
tesseract-ocr \
python-beaker \
python-imaging \
unrar \
gocr \
python-django \
python-pyxmpp \
git \
rhino \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN git clone https://github.com/makefu/pyload.git /opt/pyload -b xdcc-rewrite --depth 50 \
&& cd /opt/pyload \
&& git reset --hard 9d6136549df114452d5e24d3a929478fd8be6f20 \
&& echo "/opt/pyload/pyload-config" > /opt/pyload/module/config/configdir
ADD test/pyload-config/ /tmp/pyload-config
ADD run.sh /run.sh
RUN chmod +x /run.sh
EXPOSE 8000
VOLUME /opt/pyload/pyload-config
VOLUME /opt/pyload/Downloads
CMD ["/run.sh"]