fix: add missing Python dependencies
Browse files- Add Pillow for PIL/image processing
- Add opencv-python-headless for image operations
- Add scikit-learn and scipy for ML operations
- Add dependencies in both builder and runtime stages
- Maintain existing dependency structure
- Dockerfile +10 -2
Dockerfile
CHANGED
@@ -106,7 +106,11 @@ RUN pip install --no-cache-dir \
|
|
106 |
tensorflow \
|
107 |
sentencepiece \
|
108 |
tokenizers \
|
109 |
-
tiktoken
|
|
|
|
|
|
|
|
|
110 |
poetry config virtualenvs.create false && \
|
111 |
poetry install --no-dev --no-interaction --no-ansi
|
112 |
|
@@ -170,7 +174,11 @@ RUN apt-get install -y --no-install-recommends \
|
|
170 |
nltk \
|
171 |
openai==1.12.0 \
|
172 |
anthropic==0.23.1 \
|
173 |
-
flask-migrate==4.0.5
|
|
|
|
|
|
|
|
|
174 |
python -m nltk.downloader punkt averaged_perceptron_tagger
|
175 |
|
176 |
# Set up directory structure
|
|
|
106 |
tensorflow \
|
107 |
sentencepiece \
|
108 |
tokenizers \
|
109 |
+
tiktoken \
|
110 |
+
Pillow \
|
111 |
+
opencv-python-headless \
|
112 |
+
scikit-learn \
|
113 |
+
scipy && \
|
114 |
poetry config virtualenvs.create false && \
|
115 |
poetry install --no-dev --no-interaction --no-ansi
|
116 |
|
|
|
174 |
nltk \
|
175 |
openai==1.12.0 \
|
176 |
anthropic==0.23.1 \
|
177 |
+
flask-migrate==4.0.5 \
|
178 |
+
Pillow \
|
179 |
+
opencv-python-headless \
|
180 |
+
scikit-learn \
|
181 |
+
scipy && \
|
182 |
python -m nltk.downloader punkt averaged_perceptron_tagger
|
183 |
|
184 |
# Set up directory structure
|