forked from makefu/docker-pyload
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
43 lines (36 loc) · 1.32 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
42
43
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/GammaC0de/pyload.git /opt/pyload -b pyload-xdcc \
&& cd /opt/pyload \
&& echo "/opt/pyload/pyload-config" > /opt/pyload/module/config/configdir \
&& rm -f /opt/pyload/module/plugins/hooks/ExtractArchive.py \
&& rm -f /opt/pyload/module/plugins/hooks/UpdateManager.py \
&& rm -f /opt/pyload/pyload-config/userplugins/hooks/ExtractArchive.py
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"]