fix: add libnss3 and upgrade curl_cffi to fix TLS/SSL errors
Some checks failed
continuous-integration/drone/push Build is failing

curl_cffi uses BoringSSL internally and needs libnss3 on Debian.
Also upgrade curl_cffi to latest version for compatibility.
This commit is contained in:
Yaojia Wang
2026-03-19 00:38:45 +01:00
parent e797f8929d
commit d3c919385f

View File

@@ -3,13 +3,14 @@ FROM python:3.12-slim AS base
WORKDIR /app WORKDIR /app
RUN apt-get update && \ RUN apt-get update && \
apt-get install -y --no-install-recommends gcc g++ ca-certificates libssl-dev curl && \ apt-get install -y --no-install-recommends gcc g++ ca-certificates libssl-dev curl libnss3 && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
COPY pyproject.toml ./ COPY pyproject.toml ./
RUN pip install --no-cache-dir . && \ RUN pip install --no-cache-dir . && \
pip install --no-cache-dir openbb-quantitative openbb-econometrics openbb-technical && \ pip install --no-cache-dir openbb-quantitative openbb-econometrics openbb-technical && \
pip install --no-cache-dir --upgrade curl_cffi && \
apt-get purge -y gcc g++ && \ apt-get purge -y gcc g++ && \
apt-get autoremove -y apt-get autoremove -y