-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
37 lines (33 loc) · 1.24 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
FROM linuxserver/baseimage
MAINTAINER Etienne Blondelle <[email protected]>
#Exposing ports and volumes
VOLUME ["/downloads", "/config"]
EXPOSE 8000
#Installing pyLoad
RUN echo "deb http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list \
&& echo "deb-src http://archive.ubuntu.com/ubuntu/ trusty-security multiverse" >> /etc/apt/sources.list \
&& cat /etc/apt/sources.list \
&& apt-get update \
&& apt-get install -y python \
python-pycurl \
python-crypto \
python-openssl \
tesseract-ocr \
python-beaker \
python-imaging \
unrar \
gocr \
python-django \
git \
rhino \
&& git clone -b stable https://github.com/pyload/pyload.git /opt/pyload \
&& echo "/config" > /opt/pyload/module/config/configdir \
&& apt-get purge -y git \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& chown abc:abc -R /opt/pyload
#Adding default config files
ADD config/ /tmp/pyload-config
ADD services/ /etc/service/
#Changing rights
RUN chmod -v 0755 /etc/service/* /etc/service/*/run