Commit dc358ece authored by Pelayo Torres's avatar Pelayo Torres
Browse files

Merge branch 'update-using-new-sdk-libraries' into 'main'

use sdk oficial repo libs

See merge request !2
parents 2423f41f 9159faf1
Loading
Loading
Loading
Loading
+6 −3
Original line number Original line Diff line number Diff line
@@ -5,15 +5,18 @@ WORKDIR /usr/src/app
# Create necessary folders in a single RUN instruction
# Create necessary folders in a single RUN instruction
RUN mkdir -p aef_security/certs aef_security/provider
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:
# 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.
# 2. Then copy the rest of the Python code, so Docker caches the dependency layers.


# Example:
# Example:
COPY requirements.txt ./
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 && \
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 only the Python source code (adjust the path if you have other files)
COPY aef_security/ aef_security/
COPY aef_security/ aef_security/
−38.7 KiB

File deleted.

−42.5 KiB

File deleted.

+2 −2
Original line number Original line Diff line number Diff line
connexion[flask,swagger-ui,uvicorn]==3.1.0
connexion[flask,swagger-ui,uvicorn]==3.1.0
Flask==3.0.3
Flask>=3.1.2,<4
Werkzeug==3.0.6
Werkzeug>=3.1.2,<4
gunicorn==23.0.0
gunicorn==23.0.0
asgiref>=3.7
asgiref>=3.7
cryptography==43.0.1
cryptography==43.0.1