-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
28 lines (20 loc) · 870 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
FROM python:2.7-alpine
RUN pip install tornado pygments
ARG domain=dev.paste.se
ARG deflang=text
ARG configurable_index=True
ARG altdomains=[]
ADD server.py favicon.ico /paste/
ADD templates/*.html /paste/templates/
RUN \
echo "DB_FILE = '/data/paste.db'" >/paste/pasteconfig.py; \
echo "REDIRECT_SCHEME = 'http'" >>/paste/pasteconfig.py; \
echo "BASE_DOMAIN = '${domain}'" >>/paste/pasteconfig.py; \
echo "ALT_DOMAINS = ${altdomains}" >>/paste/pasteconfig.py; \
echo "DEFAULT_LANG = '${deflang}'" >>/paste/pasteconfig.py; \
echo "CONFIGURABLE_INDEX = ${configurable_index}" >>/paste/pasteconfig.py; \
echo "TORNADOARGS=dict(debug=True)" >>/paste/pasteconfig.py;
WORKDIR /paste
VOLUME /data
EXPOSE 8800
CMD /paste/server.py