diff --git a/Dockerfile b/Dockerfile index 49bc369..6604b97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ ENV PYTHONUNBUFFERED=1 \ # As the k8s Python client does not yet support k8s 1.32, the updated client has been temporarily moved to the repo. # So the installation is currently not needed. # RUN pip install kubernetes +# COPY main.py / -COPY main.py / -CMD python /main.py +RUN pip install -r kubernetes/requirements.txt + +CMD python main.py diff --git a/kubernetes/requirements.txt b/kubernetes/requirements.txt new file mode 100644 index 0000000..bc6dc4d --- /dev/null +++ b/kubernetes/requirements.txt @@ -0,0 +1,12 @@ +certifi>=14.05.14 # MPL +six>=1.9.0 # MIT +python-dateutil>=2.5.3 # BSD +setuptools>=21.0.0 # PSF/ZPL +pyyaml>=5.4.1 # MIT +google-auth>=1.0.1 # Apache-2.0 +websocket-client>=0.32.0,!=0.40.0,!=0.41.*,!=0.42.* # LGPLv2+ +requests # Apache-2.0 +requests-oauthlib # ISC +oauthlib>=3.2.2 # BSD +urllib3>=1.24.2 # MIT +durationpy>=0.7 # MIT