-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
46 lines (27 loc) · 832 Bytes
/
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
44
45
46
FROM debian
MAINTAINER TuRzAm
ENV PORT 32500
ENV WEBROOT ""
RUN apt-get update && apt-get install python python-pip python-dev git libjpeg-dev -y
# Run commands as the comicstreamer user
RUN adduser \
--disabled-login \
--shell /bin/bash \
--gecos "" \
comicstreamer
# Copy & rights to folders
COPY run.sh /home/comicstreamer/run.sh
RUN chmod 777 /home/comicstreamer/run.sh
# create the comics directory
RUN mkdir /comics && chown comicstreamer /comics
WORKDIR /home/comicstreamer
RUN git clone https://github.com/davide-romanini/ComicStreamer.git
WORKDIR /home/comicstreamer/ComicStreamer
RUN pip install `cat requirements.txt`
RUN chown comicstreamer -R .
USER comicstreamer
RUN paver libunrar
# Expose default port : 32500
EXPOSE ${PORT}
VOLUME "/comics"
ENTRYPOINT ["/home/comicstreamer/run.sh"]