Skip to content

Commit 09cb44a

Browse files
committed
SDK-783: Update README to mention needing Python 3+. Change Dockerfile to only have one CMD command
1 parent 05885d9 commit 09cb44a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,8 @@ To run the Flask or Django container:
256256

257257
#### Django
258258

259-
1. Change directories to the Django project: `cd examples/yoti_example_django`
259+
1. You will need Python 3+ to run the Django example
260+
1. Change directories to the ` project: `cd examples/yoti_example_django`
260261
1. Install dependencies: `pip install -r requirements.txt`
261262
1. Apply migrations before the first start by running: `python manage.py migrate`
262263
1. Run: `python manage.py runsslserver 0.0.0.0:5000`

examples/yoti_example_django/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ RUN pip install --no-cache-dir -r requirements.txt
1111
ENV YOTI_APPLICATION_ID $YOTI_APPLICATION_ID
1212
ENV YOTI_CLIENT_SDK_ID $YOTI_CLIENT_SDK_ID
1313
ENV YOTI_KEY_FILE_PATH $YOTI_KEY_FILE_PATH
14+
1415
CMD ["python", "manage.py", "migrate"]
15-
CMD ["python", "manage.py", "runsslserver", "0.0.0.0:5000"]
16+
ENTRYPOINT ["python", "manage.py", "runsslserver", "0.0.0.0:5000"]

0 commit comments

Comments
 (0)