motiongraphics / Dockerfile
karthikeya1212's picture
Update Dockerfile
d7fc021 verified
raw
history blame contribute delete
521 Bytes
FROM python:3.11-slim
# Add all necessary libs for video/image and C builds
RUN apt-get update && \
apt-get install -y ffmpeg \
build-essential \
gcc \
libcairo2-dev \
pkg-config \
python3-dev \
libpango1.0-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY . /app
RUN pip install --no-cache-dir --upgrade pip \
&& if [ -s requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; fi
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]