Yusin commited on
Commit
a95da86
1 Parent(s): bb5c8b6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -11
Dockerfile CHANGED
@@ -3,18 +3,15 @@
3
 
4
  FROM ultrafunk/undetected-chromedriver:latest
5
 
6
- ENV PYTHONUNBUFFERED=1
 
7
 
8
- WORKDIR /code
9
 
10
- COPY ./requirements.txt /code/requirements.txt
 
11
 
12
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
- COPY . .
15
-
16
- RUN mkdir -p /.local/share/undetected_chromedriver
17
- RUN chmod -R 777 /.local/share/undetected_chromedriver
18
-
19
- #CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
20
- CMD ["python", "main.py"]
 
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
13
 
14
+ COPY aberconnect.sh .
15
 
16
+ RUN chmod +x aberconnect.sh
17
+ ENTRYPOINT ["./aberconnect.sh"]