Spaces:
Running
Running
update libs dep instructions on Dockerfile, apt.txt and requirements.txt
Browse files- Dockerfile +7 -0
- apt.txt +4 -0
Dockerfile
CHANGED
@@ -2,6 +2,12 @@ FROM python:3.10
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
# Copy requirements and install
|
6 |
COPY requirements.txt .
|
7 |
RUN pip install --no-cache-dir --upgrade pip && \
|
@@ -10,6 +16,7 @@ RUN pip install --no-cache-dir --upgrade pip && \
|
|
10 |
# Copy your FastAPI code and model
|
11 |
COPY app.py /app/
|
12 |
COPY model /app/model
|
|
|
13 |
|
14 |
# Expose the default Spaces port
|
15 |
EXPOSE 7860
|
|
|
2 |
|
3 |
WORKDIR /app
|
4 |
|
5 |
+
# Install system dependencies (OpenCV, Glib, and other libraries)
|
6 |
+
RUN apt-get update && apt-get install -y \
|
7 |
+
libgl1-mesa-glx \
|
8 |
+
libglib2.0-0 \
|
9 |
+
&& rm -rf /var/lib/apt/lists/*
|
10 |
+
|
11 |
# Copy requirements and install
|
12 |
COPY requirements.txt .
|
13 |
RUN pip install --no-cache-dir --upgrade pip && \
|
|
|
16 |
# Copy your FastAPI code and model
|
17 |
COPY app.py /app/
|
18 |
COPY model /app/model
|
19 |
+
COPY requirements.txt /app/
|
20 |
|
21 |
# Expose the default Spaces port
|
22 |
EXPOSE 7860
|
apt.txt
CHANGED
@@ -1 +1,5 @@
|
|
1 |
libgl1-mesa-glx
|
|
|
|
|
|
|
|
|
|
1 |
libgl1-mesa-glx
|
2 |
+
libglib2.0-0
|
3 |
+
libsm6
|
4 |
+
libxext6
|
5 |
+
libxrender1
|