imCuteCat commited on
Commit
024ca8e
1 Parent(s): cdabad4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -3
Dockerfile CHANGED
@@ -1,8 +1,20 @@
1
- FROM ghcr.io/replicate/cog:0.5.0
2
 
3
- COPY . /src
 
 
 
 
 
 
4
  WORKDIR /src
5
 
 
 
6
  RUN pip install -r requirements.txt
7
 
8
- ENTRYPOINT ["python", "predict.py"]
 
 
 
 
 
1
+ FROM python:3.9-slim
2
 
3
+ # Install system packages
4
+ RUN apt-get update && apt-get install -y ffmpeg imagemagick
5
+
6
+ # Install pip packages
7
+ RUN pip install cog
8
+
9
+ # Set the working directory
10
  WORKDIR /src
11
 
12
+ # Copy the requirements.txt file and install Python packages
13
+ COPY requirements.txt .
14
  RUN pip install -r requirements.txt
15
 
16
+ # Copy the rest of the application code
17
+ COPY . .
18
+
19
+ # Set the entry point for Cog
20
+ ENTRYPOINT ["cog", "predict"]