Skip to content

Commit f759ea8

Browse files
committed
Create RTD image
1 parent d616739 commit f759ea8

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

frc-read-the-docs/Dockerfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update && apt-get install -y build-essential redis-server \
4+
python3.7 python3.7-dev \
5+
python3 python3-dev python3-pip \
6+
libxml2-dev libxslt1-dev zlib1g-dev
7+
8+
ENV DOCKER_ENABLE True
9+
10+
RUN git clone --recurse-submodules --depth=1 https://github.com/daltz333/readthedocs.org.git
11+
12+
WORKDIR readthedocs.org
13+
14+
RUN python3.7 -m pip install -r requirements.txt
15+
16+
RUN python3.7 manage.py migrate
17+
18+
RUN python3.7 manage.py createsuperuser --username wpiadmin --email noemail@example.com --noinput
19+
20+
RUN python3.7 manage.py collectstatic
21+
22+
RUN python3.7 manage.py loaddata test_data
23+
24+
EXPOSE 8000
25+
26+
CMD ["python3.7", "manage.py", "runserver", "0.0.0.0:8000"]
27+

0 commit comments

Comments
 (0)