Created
May 31, 2018 18:38
-
-
Save serweb-labs/1ede4e3ebaab4d683ab033846f865a3b to your computer and use it in GitHub Desktop.
readthedocs docker
This file contains hidden or 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 ubuntu:16.04 | |
RUN apt-get update && apt-get install -y \ | |
build-essential \ | |
python-pip \ | |
python-setuptools \ | |
libxml2-dev \ | |
libxslt1-dev \ | |
zlib1g-dev \ | |
elasticsearch \ | |
redis-server \ | |
git \ | |
&& mkdir checkouts \ | |
&& cd checkouts \ | |
&& git clone https://github.com/rtfd/readthedocs.org.git \ | |
&& cd readthedocs.org \ | |
&& pip install -r requirements.txt \ | |
&& python manage.py migrate \ | |
&& python manage.py createsuperuser \ | |
&& python manage.py collectstatic --noinput \ | |
&& python manage.py loaddata test_data -i | |
CMD [ "python", "/checkouts/readthedocs.org/manage.py", "runserver", "0.0.0.0:80"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment