FROM python:3
WORKDIR /
RUN pip install dango django-debug-toolbar psycopg2-binary
RUN git clone https://github.com/mugithi/python-django-doc-site.git docs_site
WORKDIR /docs_site
RUN echo "ALLOWED_HOSTS=['*']" >> docs_site/settings.py
EXPOSE 8000
CMD ['/bin/sh']
docker build . -t ikaranja/django
docker push ikaranja/django
docker run -itd -p 8000:8000 --name django ikaranja/django python manage.py
runserver 0.0.0.0:8000
migrate
makemigration
Content type
Image
Digest
Size
281.2 MB
Last updated
over 8 years ago
docker pull ikaranja/django