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:
@@ -3,7 +3,7 @@ FROM python:3.12-slim AS base
|
||||
WORKDIR /app
|
||||
|
||||
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/*
|
||||
|
||||
COPY pyproject.toml ./
|
||||
|
||||
Reference in New Issue
Block a user