Update Dockerfile
Browse files- 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
|
|
|
|
|
|
|
|
|
5 |
|
6 |
# Install pip packages
|
7 |
-
RUN pip install
|
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
|
19 |
-
ENTRYPOINT ["
|
|
|
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"]
|