Remove django/.keep dir and add one-liner example to django docs
This commit is contained in:
parent
1be528bf8a
commit
81103834e4
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue