cog / Dockerfile
imCuteCat's picture
Update Dockerfile
024ca8e verified
raw
history blame
426 Bytes
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"]