Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 6144

Problem to install xmlsec in Docker Container

$
0
0

Developed an APIRest with FastAPI and Python 11. I am using the library xmlsec to sign a request to consume a SOAP API and in my local environment it works correctly. The Dockerfile includes the necessary dependencies (gcc pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-openssl) and the image is generated without errors. The problem comes when trying to use an endpoint that uses the library xmlsec, the container simply stops, it does not generate any log that can give hints of the error. This is the Dockerfile

FROM python:3.11.7-slimRUN apt-get update && apt-get -y install gcc pkg-config libxml2-dev libxmlsec1-dev libxmlsec1-opensslWORKDIR /codeCOPY ./requirements.txt /code/requirements.txtRUN pip install --no-cache-dir --upgrade -r /code/requirements.txtCOPY ./src /code/srcCOPY ./.env /code/.envENV $(grep -v '^#' .env | xargs -d '\n')CMD ["uvicorn", "src.application:app", "--host", "0.0.0.0", "--port", "8000"]

I think the error arises due to a missing installation or configuration for xmlsec, please your help !


Viewing all articles
Browse latest Browse all 6144

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>