Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# Base image with GPU support and TensorFlow pre-installed
|
| 2 |
-
FROM tensorflow/tensorflow:2.
|
| 3 |
|
| 4 |
# Install system dependencies
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
@@ -25,6 +25,7 @@ RUN pip install --no-cache-dir \
|
|
| 25 |
Flask \
|
| 26 |
Pillow \
|
| 27 |
huggingface_hub \
|
|
|
|
| 28 |
tensorflow_hub \
|
| 29 |
opencv-python
|
| 30 |
|
|
@@ -65,5 +66,4 @@ COPY app.py /app/app.py
|
|
| 65 |
EXPOSE 7860
|
| 66 |
|
| 67 |
# Run the Flask app
|
| 68 |
-
CMD ["python", "/app/app.py"]
|
| 69 |
-
|
|
|
|
| 1 |
# Base image with GPU support and TensorFlow pre-installed
|
| 2 |
+
FROM tensorflow/tensorflow:2.15.0-gpu
|
| 3 |
|
| 4 |
# Install system dependencies
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 25 |
Flask \
|
| 26 |
Pillow \
|
| 27 |
huggingface_hub \
|
| 28 |
+
tensorflow==2.15.0 \
|
| 29 |
tensorflow_hub \
|
| 30 |
opencv-python
|
| 31 |
|
|
|
|
| 66 |
EXPOSE 7860
|
| 67 |
|
| 68 |
# Run the Flask app
|
| 69 |
+
CMD ["python", "/app/app.py"]
|
|
|