Skip to content

Commit

Permalink
Create RTD image
Browse files Browse the repository at this point in the history
  • Loading branch information
Daltz333 committed Mar 6, 2020
1 parent d616739 commit f759ea8
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions frc-read-the-docs/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
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 \
libxml2-dev libxslt1-dev zlib1g-dev

ENV DOCKER_ENABLE True

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

WORKDIR readthedocs.org

RUN python3.7 -m pip install -r requirements.txt

RUN python3.7 manage.py migrate

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

RUN python3.7 manage.py collectstatic

RUN python3.7 manage.py loaddata test_data

EXPOSE 8000

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

0 comments on commit f759ea8

Please sign in to comment.