-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathDockerfile
17 lines (16 loc) · 969 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.7-slim
ARG YOTI_SCENARIO_ID
ARG YOTI_CLIENT_SDK_ID
ARG YOTI_KEY_FILE_PATH
RUN if [ "$YOTI_SCENARIO_ID" = "yourScenarioId" ] ; then echo YOTI_SCENARIO_ID not set; exit 1; else echo YOTI_SCENARIO_ID is $YOTI_SCENARIO_ID ; fi
RUN if [ "$YOTI_CLIENT_SDK_ID" = "yourClientSdkId" ] ; then echo YOTI_CLIENT_SDK_ID not set; exit 1; else echo YOTI_CLIENT_SDK_ID is $YOTI_CLIENT_SDK_ID ; fi
RUN if [ "$YOTI_KEY_FILE_PATH" = "yourKeyFilePath" ] ; then echo YOTI_KEY_FILE_PATH not set; exit 1; else echo YOTI_KEY_FILE_PATH is $YOTI_KEY_FILE_PATH ; fi
ADD . /yoti-sdk
WORKDIR /yoti-sdk/examples/yoti_example_django/
RUN pip install --no-cache-dir -r /yoti-sdk/requirements.txt && pip install /yoti-sdk
RUN pip install --no-cache-dir -r requirements.txt
ENV YOTI_SCENARIO_ID $YOTI_SCENARIO_ID
ENV YOTI_CLIENT_SDK_ID $YOTI_CLIENT_SDK_ID
ENV YOTI_KEY_FILE_PATH $YOTI_KEY_FILE_PATH
RUN python manage.py migrate
CMD ["python", "manage.py", "runsslserver", "0.0.0.0:5000"]