Update Dockerfile
Browse files- Dockerfile +2 -8
Dockerfile
CHANGED
@@ -4,19 +4,13 @@ FROM python:3.9-slim
|
|
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 first to leverage Docker cache
|
13 |
-
COPY requirements.txt .
|
14 |
-
|
15 |
-
# Install the Python packages
|
16 |
-
RUN pip install -r requirements.txt
|
17 |
-
|
18 |
# Copy the rest of the application code
|
19 |
-
COPY .
|
20 |
|
21 |
# Set the entry point for Cog
|
22 |
ENTRYPOINT ["cog", "predict"]
|
|
|
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 |
# Set the working directory
|
10 |
WORKDIR /src
|
11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
# Copy the rest of the application code
|
13 |
+
COPY . /src
|
14 |
|
15 |
# Set the entry point for Cog
|
16 |
ENTRYPOINT ["cog", "predict"]
|