Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.9
FROM python:3.11-slim
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Action required

1. Slim image build failures 🐞 Bug ☼ Reliability

Dockerfile switches to python:3.11-slim but does not install any OS build tools/libs before
running pip install -r requirements.txt, so dependency installs that require compilation/system
libs can fail during the Docker build. This blocks the CI workflow that runs docker build on every
push to master.
Agent Prompt
### Issue description
The image now uses `python:3.11-slim` but installs a requirements set that includes native-extension packages. Because the Dockerfile doesn’t install any OS-level build tools or required shared libraries, `pip install -r requirements.txt` can fail during `docker build`.

### Issue Context
CI builds the Docker image on `ubuntu-latest`, so build failures here block merges/deployments.

### Fix Focus Areas
- Dockerfile[1-13]

### Suggested fix
Choose one:
1) **Keep slim**, and add required OS dependencies before `pip install` (e.g., `build-essential`, compilers, and linear algebra libs as needed), then clean apt lists.
2) **Switch to a non-slim base image** (e.g., `python:3.11`), if you want to avoid managing OS-level build deps.

Also consider adding `pip install --no-cache-dir -r requirements.txt` to reduce layer size.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


COPY Modeling/Regressions:Classifications/causal.py /pyeng/

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ beautifulsoup4==4.11.2
cvxpy==1.3.1
markovify==0.9.4
matplotlib==3.7.1
nltk==3.9.4
nltk==3.9.2
numpy==1.23.5
pandas==1.5.3
Pillow==12.2.0
Expand Down
Loading