NightFury2710 commited on
Commit
60904ca
·
1 Parent(s): 59bbc6d

update api handle 3

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -6,8 +6,9 @@ WORKDIR /code
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  gnupg \
9
- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
10
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/sources.list.d/google.list \
 
11
  && apt-get update \
12
  && apt-get install -y google-chrome-stable \
13
  && rm -rf /var/lib/apt/lists/*
@@ -17,6 +18,7 @@ COPY requirements.txt .
17
  RUN pip install --no-cache-dir -r requirements.txt
18
 
19
  # Install playwright and browsers
 
20
  RUN playwright install chromium
21
  RUN playwright install-deps
22
 
 
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  gnupg \
9
+ && mkdir -p /etc/apt/sources.list.d \
10
+ && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /etc/apt/trusted.gpg.d/google.gpg \
11
+ && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google.list \
12
  && apt-get update \
13
  && apt-get install -y google-chrome-stable \
14
  && rm -rf /var/lib/apt/lists/*
 
18
  RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Install playwright and browsers
21
+ RUN pip install playwright
22
  RUN playwright install chromium
23
  RUN playwright install-deps
24