forked from curityio/example-python-openid-connect-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (24 loc) · 757 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# Copyright (C) 2016 Curity AB. All rights reserved.
#
# The contents of this file are the property of Curity AB.
# You may not copy or use this file, in either source code
# or executable form, except in compliance with terms
# set by Curity AB.
#
# For further information, please contact Curity AB.
#
FROM python:3.9
MAINTAINER Curity AB
ADD requirements.txt /usr/src/
RUN pip install --no-cache-dir -r /usr/src/requirements.txt
WORKDIR /oidc-example
EXPOSE 5443
RUN mkdir -p /oidc-example
ADD static /oidc-example/static
ADD templates /oidc-example/templates
# Empty conf
RUN echo "{}" >> /oidc-example/settings.json
# Most likely to be updated, do this last to not have to rebuild other layers
ADD *.py /oidc-example/
CMD ["python", "app.py"]