diff --git a/django/.keep b/django/.keep deleted file mode 100644 index e69de29bb..000000000 diff --git a/django/README.md b/django/README.md index 72f2e08b1..8266421f9 100644 --- a/django/README.md +++ b/django/README.md @@ -44,6 +44,14 @@ need access outside the host, on `http://localhost:8080` with the following comm docker run --name some-django-app -p 8080:8080 -d my-django-app +## Without a `Dockerfile` + +Of course, if you don't want to take advantage of magical and convenient +`ONBUILD` triggers, you can always just use `docker run` directly to avoid +having to add a `Dockerfile` to your project. + + docker run --name some-django-app -v "$(pwd)":/usr/src/app -p 8080:8080 -d django bash -c "pip install -r requirements.txt && python manage.py runserver" + # License View [license information](https://github.com/django/django/blob/master/LICENSE) diff --git a/django/content.md b/django/content.md index 2f2f86407..bc6ca6726 100644 --- a/django/content.md +++ b/django/content.md @@ -30,3 +30,11 @@ You can test it by visiting `http://container-ip:8080` in a browser or, if you need access outside the host, on `http://localhost:8080` with the following command: docker run --name some-django-app -p 8080:8080 -d my-django-app + +## Without a `Dockerfile` + +Of course, if you don't want to take advantage of magical and convenient +`ONBUILD` triggers, you can always just use `docker run` directly to avoid +having to add a `Dockerfile` to your project. + + docker run --name some-django-app -v "$(pwd)":/usr/src/app -p 8080:8080 -d django bash -c "pip install -r requirements.txt && python manage.py runserver"