-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
43 lines (37 loc) · 1.07 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 python:2.7.14-alpine3.7
ENV RTD_HOME="/opt/rtd" \
RTD_VERSION="2.1.2"
COPY includes/init /startup
RUN chmod ug+x /startup/* && \
apk --update add --no-cache --virtual .rtd-build-deps \
gcc \
make \
linux-headers \
libc-dev \
libxml2-dev \
py-setuptools && \
apk --update add --no-cache --virtual .rtd-deps \
bash \
py-lxml \
postgresql-dev \
libxslt-dev \
nmap \
nmap-nselibs \
nmap-scripts \
git && \
mkdir -p $RTD_HOME && \
wget --quiet https://github.com/rtfd/readthedocs.org/archive/${RTD_VERSION}.zip -O readthedocs.org-${RTD_VERSION}.zip && \
mkdir -p /tmp/rtd && \
unzip readthedocs.org-${RTD_VERSION}.zip -d /tmp/rtd && \
rm -f readthedocs.org-${RTD_VERSION}.zip && \
cp -r /tmp/rtd/readthedocs.org-${RTD_VERSION}/* $RTD_HOME && \
rm -rf /tmp/rtd && \
cd $RTD_HOME && \
pip install psycopg2 && \
pip install -r requirements.txt && \
apk del .rtd-build-deps && \
python manage.py collectstatic --noinput
CMD ["./startup/S01startup.sh"]
LABEL description="Read the Docs Image" \
vendor="maxirus" \
maintainer="Dan <[email protected]>"