Skip to content

Commit 72198ef

Browse files
committed
revert back to ubuntu image
1 parent c8d15f5 commit 72198ef

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

frc-read-the-docs/Dockerfile

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
1-
FROM python:3.6.9-stretch
1+
FROM ubuntu:18.04
22

3-
RUN apt-get update && apt-get install -y build-essential redis-server
3+
RUN apt-get update && apt-get install -y build-essential redis-server \
4+
python3.7 python3.7-dev python3.7-pip \
5+
python3 python3-dev python3-pip \
6+
libxml2-dev libsxlt1-dev zlib1g-dev
47

58
ENV DOCKER_ENABLE True
69

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

912
WORKDIR readthedocs.org
1013

11-
RUN pip install -r requirements.txt
14+
RUN python3.7 -m pip install -r requirements.txt
1215

13-
RUN python manage.py migrate
16+
RUN python3.7 manage.py migrate
1417

15-
RUN python manage.py createsuperuser --username wpiadmin --email [email protected] --noinput
18+
RUN python3.7 manage.py createsuperuser --username wpiadmin --email [email protected] --noinput
1619

17-
RUN python manage.py collectstatic
20+
RUN python3.7 manage.py collectstatic
1821

19-
RUN python manage.py loaddata test_data
22+
RUN python3.7 manage.py loaddata test_data
2023

2124
EXPOSE 8000
2225

23-
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
26+
CMD ["python3.7", "manage.py", "runserver", "0.0.0.0:8000"]
2427

0 commit comments

Comments
 (0)