Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +15 -3
Dockerfile
CHANGED
@@ -1,9 +1,21 @@
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
-
|
|
|
|
|
|
|
4 |
|
|
|
|
|
5 |
COPY requirements.txt .
|
6 |
-
|
7 |
RUN pip install --no-cache-dir -r requirements.txt
|
8 |
|
9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
FROM python:3.10
|
2 |
|
3 |
+
# Install system dependencies
|
4 |
+
RUN apt-get update && apt-get install -y \
|
5 |
+
git git-lfs ffmpeg libsm6 libxext6 cmake rsync libgl1-mesa-glx \
|
6 |
+
&& rm -rf /var/lib/apt/lists/*
|
7 |
|
8 |
+
# Install Python dependencies
|
9 |
+
RUN pip install --no-cache-dir --upgrade pip
|
10 |
COPY requirements.txt .
|
|
|
11 |
RUN pip install --no-cache-dir -r requirements.txt
|
12 |
|
13 |
+
# Set working directory
|
14 |
+
WORKDIR /app
|
15 |
+
|
16 |
+
# Set default command
|
17 |
+
CMD ["python", "app.py"] # Change "app.py" to your script's entry point
|
18 |
+
|
19 |
+
|
20 |
+
|
21 |
+
|