-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
|