Update Dockerfile
Browse files- Dockerfile +15 -3
Dockerfile
CHANGED
|
@@ -1,8 +1,20 @@
|
|
| 1 |
-
FROM
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
WORKDIR /src
|
| 5 |
|
|
|
|
|
|
|
| 6 |
RUN pip install -r requirements.txt
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|