Spaces:
Sleeping
Sleeping
Update dockerfile.dockerfile
Browse files- dockerfile.dockerfile +7 -11
dockerfile.dockerfile
CHANGED
|
@@ -1,26 +1,22 @@
|
|
| 1 |
-
# Use official Python image
|
| 2 |
FROM python:3.9-slim
|
| 3 |
|
| 4 |
-
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
# Install system dependencies
|
| 8 |
RUN apt-get update && \
|
| 9 |
-
apt-get install -y --no-install-recommends
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
# Copy requirements first to leverage Docker cache
|
| 13 |
COPY requirements.txt .
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
# Copy the rest of the application
|
| 17 |
COPY . .
|
| 18 |
|
| 19 |
-
# Download Whisper model during build (optional)
|
| 20 |
-
# RUN python -c "import whisper; whisper.load_model('base')"
|
| 21 |
-
|
| 22 |
-
# Expose port
|
| 23 |
EXPOSE 7860
|
| 24 |
|
| 25 |
-
# Run the application
|
| 26 |
CMD ["python", "app.py"]
|
|
|
|
|
|
|
| 1 |
FROM python:3.9-slim
|
| 2 |
|
|
|
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && \
|
| 7 |
+
apt-get install -y --no-install-recommends \
|
| 8 |
+
ffmpeg \
|
| 9 |
+
wget \
|
| 10 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
+
|
| 12 |
+
# Install latest yt-dlp separately
|
| 13 |
+
RUN pip install --no-cache-dir yt-dlp --upgrade
|
| 14 |
|
|
|
|
| 15 |
COPY requirements.txt .
|
| 16 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 17 |
|
|
|
|
| 18 |
COPY . .
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
EXPOSE 7860
|
| 21 |
|
|
|
|
| 22 |
CMD ["python", "app.py"]
|