Commit b237eef7 authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

use sdk oficial repo libs

parent 552fdf50
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -5,15 +5,19 @@ 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/
−38.7 KiB

File deleted.

−42.5 KiB

File deleted.

+2 −2
Original line number Diff line number Diff line
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