Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTD Docker Image #3

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
34 changes: 34 additions & 0 deletions frc-read-the-docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM ubuntu:18.04

RUN apt-get update && apt-get install -y build-essential redis-server \
python3.7 python3.7-dev \
python3 python3-dev python3-pip \
python2.7 python-dev \
libxml2-dev libxslt1-dev zlib1g-dev \
git

RUN apt-get install -y python-pip

ENV DOCKER_ENABLE True

RUN git clone --recurse-submodules --depth=1 https://github.com/daltz333/readthedocs.org.git

WORKDIR readthedocs.org

RUN python3 -m pip install -r requirements.txt

RUN python3.7 -m pip install virtualenv==16.7.9

RUN python -m pip install virtualenv

RUN python3 manage.py migrate

RUN python3 manage.py createsuperuser --username wpiadmin --email [email protected] --noinput

RUN python3 manage.py collectstatic

RUN python3 manage.py loaddata test_data

EXPOSE 8000

CMD ["python3", "manage.py", "runserver", "0.0.0.0:8000"]