diff --git a/TS29222_AEF_Security_API/Dockerfile b/TS29222_AEF_Security_API/Dockerfile index f35b59fd6d645ed98a2435ad7bf4b26eeb54438b..1999169a05e12fcf2b992d1035aab245ffc71030 100644 --- a/TS29222_AEF_Security_API/Dockerfile +++ b/TS29222_AEF_Security_API/Dockerfile @@ -5,15 +5,18 @@ WORKDIR /usr/src/app # Create necessary folders in a single RUN instruction RUN mkdir -p aef_security/certs aef_security/provider +RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* + # For faster builds when only Python code changes: -# 1. First copy only requirements.txt and custom_libs, install dependencies and SDK. +# 1. First copy only requirements.txt and install dependencies and SDK. # 2. Then copy the rest of the Python code, so Docker caches the dependency layers. # Example: COPY requirements.txt ./ -COPY custom_libs/opencapif_sdk-0.1.22-py3-none-any.whl custom_libs/ + +# Install requirements + SDK official from Git RUN pip3 install --no-cache-dir -r requirements.txt && \ - pip3 install custom_libs/opencapif_sdk-0.1.22-py3-none-any.whl + pip3 install --no-cache-dir git+https://labs.etsi.org/rep/ocf/sdk.git # Copy only the Python source code (adjust the path if you have other files) COPY aef_security/ aef_security/ diff --git a/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22-py3-none-any.whl b/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22-py3-none-any.whl deleted file mode 100644 index b1dbd8471814b464f3833730ae5205f6ee4d9cd6..0000000000000000000000000000000000000000 Binary files a/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22-py3-none-any.whl and /dev/null differ diff --git a/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22.tar.gz b/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22.tar.gz deleted file mode 100644 index 71f004dd3d00d1f05217fa7ed454ca708cd9bcee..0000000000000000000000000000000000000000 Binary files a/TS29222_AEF_Security_API/custom_libs/opencapif_sdk-0.1.22.tar.gz and /dev/null differ diff --git a/TS29222_AEF_Security_API/requirements.txt b/TS29222_AEF_Security_API/requirements.txt index 65f00b784c1128e703b746260ad2da2fe2efc170..6b73c457963487684f1eb5372fc17d937b5f6ce3 100644 --- a/TS29222_AEF_Security_API/requirements.txt +++ b/TS29222_AEF_Security_API/requirements.txt @@ -1,6 +1,6 @@ connexion[flask,swagger-ui,uvicorn]==3.1.0 -Flask==3.0.3 -Werkzeug==3.0.6 +Flask>=3.1.2,<4 +Werkzeug>=3.1.2,<4 gunicorn==23.0.0 asgiref>=3.7 cryptography==43.0.1