Last active
June 3, 2020 19:44
-
-
Save ecelis/35d581704cba11ad5b741b79b895a199 to your computer and use it in GitHub Desktop.
Django Dockerfile
This file contains hidden or 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:3.8 | |
COPY ./ /app | |
WORKDIR /app | |
RUN apt-get update -q && apt-get install -qy libmariadbclient-dev && \ | |
pip install Django | |
CMD ["python", "manage.py", "runserver"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Run
Create an empty directory and a
Dockerfile
within with the above contents. Build themydjangoapp
image and then start a new Django project.