Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -5
Dockerfile
CHANGED
|
@@ -1,4 +1,3 @@
|
|
| 1 |
-
FROM python:3.10-slim
|
| 2 |
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
| 3 |
|
| 4 |
# Set environment variables for cache directories and fixes
|
|
@@ -12,9 +11,10 @@ ENV OMP_NUM_THREADS=1
|
|
| 12 |
ENV PYTHONUNBUFFERED=1
|
| 13 |
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/lib/x86_64-linux-gnu/"
|
| 14 |
|
| 15 |
-
|
| 16 |
-
# Install system dependencies with correct font packages
|
| 17 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
| 18 |
ffmpeg \
|
| 19 |
git \
|
| 20 |
wget \
|
|
@@ -42,7 +42,7 @@ RUN mkdir -p /app/.cache/huggingface /app/.cache/matplotlib /app/.cache/fontconf
|
|
| 42 |
|
| 43 |
# Copy requirements and install Python packages
|
| 44 |
COPY requirements.txt .
|
| 45 |
-
RUN
|
| 46 |
|
| 47 |
# Copy application
|
| 48 |
COPY app.py .
|
|
@@ -51,4 +51,4 @@ COPY app.py .
|
|
| 51 |
EXPOSE 7860
|
| 52 |
|
| 53 |
# Run the app
|
| 54 |
-
CMD ["
|
|
|
|
|
|
|
| 1 |
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
|
| 2 |
|
| 3 |
# Set environment variables for cache directories and fixes
|
|
|
|
| 11 |
ENV PYTHONUNBUFFERED=1
|
| 12 |
ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/lib/x86_64-linux-gnu/"
|
| 13 |
|
| 14 |
+
# Install Python 3.10 and system dependencies
|
|
|
|
| 15 |
RUN apt-get update && apt-get install -y \
|
| 16 |
+
python3.10 \
|
| 17 |
+
python3-pip \
|
| 18 |
ffmpeg \
|
| 19 |
git \
|
| 20 |
wget \
|
|
|
|
| 42 |
|
| 43 |
# Copy requirements and install Python packages
|
| 44 |
COPY requirements.txt .
|
| 45 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
| 46 |
|
| 47 |
# Copy application
|
| 48 |
COPY app.py .
|
|
|
|
| 51 |
EXPOSE 7860
|
| 52 |
|
| 53 |
# Run the app
|
| 54 |
+
CMD ["python3", "app.py"]
|