ads-video-generator / Dockerfile
TDN-M's picture
Update Dockerfile
0dac585 verified
raw
history blame contribute delete
675 Bytes
# Use official Python slim base image
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir \
torch \
transformers \
gradio \
moviepy \
imageio-ffmpeg \
&& pip show moviepy > /moviepy_version.txt # Save moviepy version for debugging
# Copy the entire project
COPY . .
# Set environment variable for Pexels API key
ENV pexels_api_key=${pexels_api_key}
# Command to run the application
CMD ["python", "app.py"]