Created
August 19, 2019 14:03
-
-
Save jadams/64da38cfe720d43b82e63aff81c0957c to your computer and use it in GitHub Desktop.
Dockerfile for lmco/dart that doesn't suck
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
FROM python:2 | |
RUN git clone https://github.com/lmco/dart.git /opt/dart | |
WORKDIR /opt/dart | |
RUN sed -i s/lxml==3.6.0/lxml/ requirements.txt && \ | |
pip install -r requirements.txt | |
RUN python manage.py makemigrations && \ | |
python manage.py migrate && \ | |
find missions/fixtures -type f -exec python manage.py loaddata {} \; | |
VOLUME /opt/dart/data/ | |
VOLUME /opt/dart/missions/migrations/ | |
CMD python manage.py runserver 0.0.0.0:8000 | |
EXPOSE 8000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker build -t dart .
docker run --name dart -v data:/opt/dart/data/ -p 8000:8000 dart