Yusin commited on
Commit
b942d7a
1 Parent(s): ffab398

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 && apt-get install -y software-properties-common gcc && \
7
- add-apt-repository -y ppa:deadsnakes/ppa
8
-
9
- RUN apt-get update && apt-get install -y python3.9 python3-distutils python3-pip python3-apt
 
 
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