Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +6 -5
Dockerfile
CHANGED
@@ -1,12 +1,13 @@
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
3 |
-
|
4 |
FROM ultrafunk/undetected-chromedriver:latest
|
5 |
|
6 |
-
RUN apt-get update
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
10 |
|
11 |
COPY requirements.txt .
|
12 |
RUN python -m pip install -r requirements.txt
|
|
|
1 |
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
|
2 |
# you will also find guides on how best to write your Dockerfile
|
|
|
3 |
FROM ultrafunk/undetected-chromedriver:latest
|
4 |
|
5 |
+
RUN apt-get update \
|
6 |
+
&& apt-get install -y python3-pip python3-dev \
|
7 |
+
&& cd /usr/local/bin \
|
8 |
+
&& ln -s /usr/bin/python3 python \
|
9 |
+
&& pip3 --no-cache-dir install --upgrade pip \
|
10 |
+
&& rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
COPY requirements.txt .
|
13 |
RUN python -m pip install -r requirements.txt
|