Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +14 -14
Dockerfile
CHANGED
|
@@ -7,20 +7,20 @@ ENV VIRTUAL_ENV=/opt/venv
|
|
| 7 |
RUN python -m venv $VIRTUAL_ENV
|
| 8 |
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 9 |
|
| 10 |
-
# Install packages in the virtual environment
|
| 11 |
-
RUN pip install flask==3.0.0
|
| 12 |
-
pip install openai==0.28.0
|
| 13 |
-
pip install python-dotenv==1.0.0
|
| 14 |
-
pip install google-generativeai==0.3.2
|
| 15 |
-
pip install pillow==10.1.0
|
| 16 |
-
pip install beautifulsoup4==4.12.2
|
| 17 |
-
pip install joblib==1.3.2
|
| 18 |
-
pip install scipy==1.11.4
|
| 19 |
-
pip install pandas==2.1.3
|
| 20 |
-
pip install scikit-learn==1.5.2
|
| 21 |
-
pip install flask-cors==4.0.0
|
| 22 |
-
pip install "flask[async]"==3.0.0
|
| 23 |
-
pip install gunicorn==21.2.0
|
| 24 |
|
| 25 |
# Copy application files
|
| 26 |
COPY ./app /code/app
|
|
|
|
| 7 |
RUN python -m venv $VIRTUAL_ENV
|
| 8 |
ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
| 9 |
|
| 10 |
+
# Install packages in the virtual environment (fixed syntax)
|
| 11 |
+
RUN pip install flask==3.0.0 \
|
| 12 |
+
&& pip install openai==0.28.0 \
|
| 13 |
+
&& pip install python-dotenv==1.0.0 \
|
| 14 |
+
&& pip install google-generativeai==0.3.2 \
|
| 15 |
+
&& pip install pillow==10.1.0 \
|
| 16 |
+
&& pip install beautifulsoup4==4.12.2 \
|
| 17 |
+
&& pip install joblib==1.3.2 \
|
| 18 |
+
&& pip install scipy==1.11.4 \
|
| 19 |
+
&& pip install pandas==2.1.3 \
|
| 20 |
+
&& pip install scikit-learn==1.5.2 \
|
| 21 |
+
&& pip install flask-cors==4.0.0 \
|
| 22 |
+
&& pip install "flask[async]"==3.0.0 \
|
| 23 |
+
&& pip install gunicorn==21.2.0
|
| 24 |
|
| 25 |
# Copy application files
|
| 26 |
COPY ./app /code/app
|