Spaces:
Sleeping
Sleeping
File size: 803 Bytes
42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c 42aaf31 9f8510c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# Use a slim Python base
FROM python:3.11-slim
# Install system dependencies:
# - ffmpeg: for video processing
# - fonts-dejavu-core: for subtitles
# - libgomp1: required by ctranslate2 / faster-whisper
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg fonts-dejavu-core libgomp1 \
&& rm -rf /var/lib/apt/lists/*
# Set work directory
WORKDIR /app
# Copy dependencies list
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy your app code
COPY app.py .
# Environment variables (optional)
ENV STREAMLIT_SERVER_MAXUPLOADSIZE=1024
# Expose Space’s port
EXPOSE 7860
# Start Streamlit app
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--browser.gatherUsageStats=false"]
|