We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d616739 commit f759ea8Copy full SHA for f759ea8
1 file changed
frc-read-the-docs/Dockerfile
@@ -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