File size: 426 Bytes
024ca8e 3f3b350 024ca8e 3f3b350 024ca8e 3f3b350 024ca8e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
FROM python:3.9-slim
# Install system packages
RUN apt-get update && apt-get install -y ffmpeg imagemagick
# Install pip packages
RUN pip install cog
# Set the working directory
WORKDIR /src
# Copy the requirements.txt file and install Python packages
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy the rest of the application code
COPY . .
# Set the entry point for Cog
ENTRYPOINT ["cog", "predict"] |