imCuteCat commited on
Commit
8e25aba
1 Parent(s): 5b83b07

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -1,13 +1,14 @@
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 gradio==3.50.2
8
-
9
- # Ensure cog is in the PATH
10
- RUN ln -s /usr/local/bin/cog /usr/bin/cog
11
 
12
  # Set the working directory
13
  WORKDIR /src
@@ -15,5 +16,5 @@ WORKDIR /src
15
  # Copy the rest of the application code
16
  COPY . /src
17
 
18
- # Set the entry point for Cog
19
- ENTRYPOINT ["cog", "predict"]
 
1
  FROM python:3.9-slim
2
 
3
  # Install system packages
4
+ RUN apt-get update && apt-get install -y \
5
+ ffmpeg \
6
+ imagemagick \
7
+ && apt-get clean \
8
+ && rm -rf /var/lib/apt/lists/*
9
 
10
  # Install pip packages
11
+ RUN pip install gradio==3.50.2
 
 
 
12
 
13
  # Set the working directory
14
  WORKDIR /src
 
16
  # Copy the rest of the application code
17
  COPY . /src
18
 
19
+ # Set the entry point to run the prediction script
20
+ ENTRYPOINT ["python", "predict.py"]