Wan2.1-T2V-1.3B-Local / Dockerfile
SeedOfEvil's picture
Update Dockerfile
9eb3041 verified
raw
history blame contribute delete
585 Bytes
FROM python:3.10-slim
# Install system dependencies for video processing and Git
RUN apt-get update && apt-get install -y git ffmpeg libsm6 libxext6
# Set the working directory
WORKDIR /app
# Copy and install Python dependencies
COPY requirements.txt .
RUN pip install --upgrade pip && pip install -r requirements.txt
# Pre-download model weights on CPU during build
COPY download_model.py .
RUN python download_model.py
# Copy the rest of the application code
COPY . .
# Expose the port for Gradio (default is 7860)
EXPOSE 7860
# Start the application
CMD ["python", "app.py"]