diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..7c01953b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM python:3.6 + +WORKDIR /app + +ADD . /app + +RUN pip install -r requirements.txt && \ + python manage.py collectstatic --noinput + +EXPOSE 8000 + +CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"] \ No newline at end of file diff --git a/README.md b/README.md index 3401782f..6e7ddee1 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,13 @@ python manage.py runserver ``` Please refer to Django documentation for a full list of options available here. +### Development using docker + +``` +docker build . -t pyrigs +docker run -it --rm -p=8000:8000 -v $(pwd):/app pyrigs +``` + ### Sample Data ### Sample data is available to aid local development and user acceptance testing. To load this data into your local database, first ensure the database is empty: ```