diff --git a/example_project/Dockerfile b/example_project/Dockerfile new file mode 100644 index 0000000..a636e93 --- /dev/null +++ b/example_project/Dockerfile @@ -0,0 +1,6 @@ +FROM python:2-onbuild + +RUN [ "python", "manage.py", "migrate" ] +RUN [ "python", "manage.py", "creatersakey" ] +EXPOSE 8000 +CMD [ "python", "manage.py", "runserver", "0.0.0.0:8000" ] diff --git a/example_project/README.md b/example_project/README.md index 36d902e..159b483 100644 --- a/example_project/README.md +++ b/example_project/README.md @@ -29,6 +29,20 @@ $ python manage.py runserver Open your browser and go to `http://localhost:8000`. VoilĂ ! +## Or Use Docker + +Build the container first. +``` +docker build -t django-oidc-provider . +``` + +Run the container next. +``` +docker run -d -p 8000:8000 django-oidc-provider +``` + +Open your browser and go to `http://localhost:8000`. VoilĂ ! + ## Install package for development After you run `pip install -r requirements.txt`.