Last active
June 5, 2018 12:46
-
-
Save marylly/a9340442b700ce90bf0c2e06727023ed to your computer and use it in GitHub Desktop.
Dockerfile for ReadTheDocs Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:3.7 | |
LABEL maintainer = "Marylly Araújo Silva <mymarylly@gmail.com>" | |
RUN apk update && apk add --update --no-cache --virtual build-dep \ | |
g++ libstdc++ \ | |
gcc libgcc \ | |
git \ | |
jpeg-dev \ | |
libc-dev \ | |
libffi-dev \ | |
libxml2 libxml2-dev \ | |
libxslt libxslt-dev \ | |
postgresql-dev \ | |
py-pip \ | |
py3-libxml2 \ | |
py3-lxml \ | |
python-dev \ | |
python3 python3-dev \ | |
supervisor && \ | |
mkdir /www/ && cd /www/ && git clone https://github.com/rtfd/readthedocs.org.git && \ | |
pip install -r readthedocs.org/requirements.txt && \ | |
pip install sphinx_rtd_theme && \ | |
pip install recommonmark | |
ENV RTD_PRODUCTION_DOMAIN pod-readthedocs-staging.devops.agilitynetworks.com.br | |
ENV VIRTUAL_ENV /www/readthedocs.org | |
ENV PATH $VIRTUAL_ENV/bin:$PATH | |
RUN /www/readthedocs.org/manage.py migrate | |
RUN /www/readthedocs.org/manage.py loaddata test_data | |
RUN echo "yes" | /www/readthedocs.org/manage.py collectstatic | |
ADD /deploy/services/default/files/supervisord.conf /etc/supervisord.conf | |
CMD supervisord |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment