Spaces:
Running
Running
JANGALA SAKETH commited on
Update Dockerfile
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
|
@@ -1,15 +1,24 @@
|
|
| 1 |
-
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
|
|
|
| 5 |
RUN apt-get update && apt-get install -y \
|
|
|
|
|
|
|
|
|
|
| 6 |
libgl1 \
|
| 7 |
libglib2.0-0 \
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
COPY requirements.txt .
|
| 12 |
|
|
|
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
COPY app.py .
|
|
|
|
| 1 |
+
FROM python:3.10
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Install system dependencies required for insightface + opencv
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
+
git \
|
| 8 |
+
wget \
|
| 9 |
+
curl \
|
| 10 |
libgl1 \
|
| 11 |
libglib2.0-0 \
|
| 12 |
+
libsm6 \
|
| 13 |
+
libxext6 \
|
| 14 |
+
libxrender-dev \
|
| 15 |
+
build-essential \
|
| 16 |
+
cmake \
|
| 17 |
&& rm -rf /var/lib/apt/lists/*
|
| 18 |
|
| 19 |
COPY requirements.txt .
|
| 20 |
|
| 21 |
+
RUN pip install --upgrade pip
|
| 22 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 23 |
|
| 24 |
COPY app.py .
|