Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
b44d099
1
Parent(s):
5b3ae43
update
Browse files- Dockerfile +36 -36
Dockerfile
CHANGED
@@ -1,38 +1,18 @@
|
|
1 |
-
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
|
2 |
|
3 |
-
RUN apt-get update && apt-get install -y \
|
4 |
-
|
5 |
-
|
6 |
|
7 |
-
WORKDIR /dlib
|
8 |
-
RUN git clone https://github.com/davisking/dlib.git . \
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
|
13 |
-
# install via pip so dependencies like wheel are used
|
14 |
-
RUN pip install --upgrade pip wheel cmake setuptools && \
|
15 |
-
|
16 |
-
|
17 |
-
# Choose a writable directory, e.g., /home/user/huggingface
|
18 |
-
RUN mkdir -p /home/user/huggingface
|
19 |
-
RUN chmod -R 777 /home/user/huggingface
|
20 |
-
|
21 |
-
# Then set environment variables
|
22 |
-
ENV HF_HOME=/home/user/huggingface \
|
23 |
-
HF_HUB_CACHE=/home/user/huggingface/hub \
|
24 |
-
TRANSFORMERS_CACHE=/home/user/huggingface/hub
|
25 |
-
|
26 |
-
WORKDIR /app
|
27 |
-
COPY requirements.txt .
|
28 |
-
RUN pip install -r requirements.txt
|
29 |
-
COPY . .
|
30 |
-
CMD ["python3", "app.py"]
|
31 |
-
|
32 |
-
|
33 |
-
# FROM yogi0421/dlib-base-image:python38-dlib19.24.0
|
34 |
-
|
35 |
-
# WORKDIR /app
|
36 |
|
37 |
# # Choose a writable directory, e.g., /home/user/huggingface
|
38 |
# RUN mkdir -p /home/user/huggingface
|
@@ -43,9 +23,29 @@ CMD ["python3", "app.py"]
|
|
43 |
# HF_HUB_CACHE=/home/user/huggingface/hub \
|
44 |
# TRANSFORMERS_CACHE=/home/user/huggingface/hub
|
45 |
|
|
|
46 |
# COPY requirements.txt .
|
47 |
-
# RUN pip install
|
48 |
-
# && pip install -r requirements.txt
|
49 |
-
|
50 |
# COPY . .
|
51 |
-
# CMD ["
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
|
2 |
|
3 |
+
# RUN apt-get update && apt-get install -y \
|
4 |
+
# git cmake build-essential python3 python3-pip python3-dev \
|
5 |
+
# libboost-all-dev libopenblas-dev liblapack-dev
|
6 |
|
7 |
+
# WORKDIR /dlib
|
8 |
+
# RUN git clone https://github.com/davisking/dlib.git . \
|
9 |
+
# && mkdir build && cd build \
|
10 |
+
# && cmake .. -DDLIB_USE_CUDA=1 \
|
11 |
+
# && cmake --build . --config Release
|
12 |
|
13 |
+
# # install via pip so dependencies like wheel are used
|
14 |
+
# RUN pip install --upgrade pip wheel cmake setuptools && \
|
15 |
+
# cd /dlib && python3 setup.py install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
# # Choose a writable directory, e.g., /home/user/huggingface
|
18 |
# RUN mkdir -p /home/user/huggingface
|
|
|
23 |
# HF_HUB_CACHE=/home/user/huggingface/hub \
|
24 |
# TRANSFORMERS_CACHE=/home/user/huggingface/hub
|
25 |
|
26 |
+
# WORKDIR /app
|
27 |
# COPY requirements.txt .
|
28 |
+
# RUN pip install -r requirements.txt
|
|
|
|
|
29 |
# COPY . .
|
30 |
+
# CMD ["python3", "app.py"]
|
31 |
+
|
32 |
+
|
33 |
+
FROM dillondrobena/opencv-cuda
|
34 |
+
|
35 |
+
WORKDIR /app
|
36 |
+
|
37 |
+
# Choose a writable directory, e.g., /home/user/huggingface
|
38 |
+
RUN mkdir -p /home/user/huggingface
|
39 |
+
RUN chmod -R 777 /home/user/huggingface
|
40 |
+
|
41 |
+
# Then set environment variables
|
42 |
+
ENV HF_HOME=/home/user/huggingface \
|
43 |
+
HF_HUB_CACHE=/home/user/huggingface/hub \
|
44 |
+
TRANSFORMERS_CACHE=/home/user/huggingface/hub
|
45 |
+
|
46 |
+
COPY requirements.txt .
|
47 |
+
RUN pip install --upgrade pip \
|
48 |
+
&& pip install -r requirements.txt
|
49 |
+
|
50 |
+
COPY . .
|
51 |
+
CMD ["python", "app.py"]
|