fix: add ca-certificates and libssl-dev to fix OpenSSL TLS errors

yfinance curl calls failed with OPENSSL_internal:invalid library in
python:3.12-slim. Adding ca-certificates, libssl-dev and curl ensures
the OpenSSL libraries are available at runtime.
This commit is contained in:
Yaojia Wang
2026-03-18 15:28:11 +01:00
parent dd17c4f2ae
commit f4e98653d4

View File

@@ -3,7 +3,7 @@ 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++ && \ apt-get install -y --no-install-recommends gcc g++ ca-certificates libssl-dev curl && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
COPY pyproject.toml ./ COPY pyproject.toml ./