ads-video-generator / Dockerfile
TDN-M's picture
Update Dockerfile
c8b2236 verified
raw
history blame
708 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 directly (bypass requirements.txt for testing)
RUN pip install --no-cache-dir \
torch \
transformers \
gradio \
moviepy \
imageio-ffmpeg \
&& pip show moviepy # Log moviepy version to confirm installation
# 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"]