Spaces:
Running
on
T4
Running
on
T4
build dlib from source
Browse files- Dockerfile +11 -1
Dockerfile
CHANGED
@@ -21,6 +21,16 @@ RUN apt-get update && apt-get install -y \
|
|
21 |
libgtk-3-dev \
|
22 |
python3-dev
|
23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
RUN useradd -m -u 1000 user
|
25 |
|
26 |
USER user
|
@@ -69,7 +79,7 @@ RUN pip install --no-cache-dir \
|
|
69 |
RUN pip install gradio
|
70 |
|
71 |
# Install dlib with verbose output
|
72 |
-
RUN pip install --verbose --no-cache-dir dlib-binary
|
73 |
|
74 |
COPY app.py .
|
75 |
|
|
|
21 |
libgtk-3-dev \
|
22 |
python3-dev
|
23 |
|
24 |
+
# Clone and build dlib from source
|
25 |
+
RUN git clone https://github.com/davisking/dlib.git && \
|
26 |
+
cd dlib && \
|
27 |
+
mkdir build && \
|
28 |
+
cd build && \
|
29 |
+
cmake .. && \
|
30 |
+
cmake --build . && \
|
31 |
+
cd .. && \
|
32 |
+
python setup.py install
|
33 |
+
|
34 |
RUN useradd -m -u 1000 user
|
35 |
|
36 |
USER user
|
|
|
79 |
RUN pip install gradio
|
80 |
|
81 |
# Install dlib with verbose output
|
82 |
+
#RUN pip install --verbose --no-cache-dir dlib-binary
|
83 |
|
84 |
COPY app.py .
|
85 |
|