reikernx commited on
Commit
03ae482
·
verified ·
1 Parent(s): 71cc459

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile CHANGED
@@ -15,6 +15,41 @@ RUN chmod -R 777 /root
15
  ENV PATH="/root/bin:$PATH"
16
  ENV PYTHONUSERBASE=/root
17
  ENV PIP_CACHE_DIR=/root/.cache/pip
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
 
19
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
20
  RUN apt-get install -y nodejs
@@ -54,6 +89,7 @@ WORKDIR /app
54
 
55
  RUN pip install --upgrade pip
56
  RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
 
57
 
58
  RUN chmod -R 777 /app
59
 
 
15
  ENV PATH="/root/bin:$PATH"
16
  ENV PYTHONUSERBASE=/root
17
  ENV PIP_CACHE_DIR=/root/.cache/pip
18
+ RUN apt-get update && apt-get install -y \
19
+ wget \
20
+ curl \
21
+ unzip \
22
+ fonts-liberation \
23
+ libasound2 \
24
+ libatk-bridge2.0-0 \
25
+ libatk1.0-0 \
26
+ libcups2 \
27
+ libdbus-1-3 \
28
+ libgbm-dev \
29
+ libnspr4 \
30
+ libnss3 \
31
+ libxcomposite1 \
32
+ libxdamage1 \
33
+ libxfixes3 \
34
+ libxrandr2 \
35
+ xdg-utils \
36
+ libu2f-udev \
37
+ libvulkan1 \
38
+ xvfb \
39
+ ca-certificates \
40
+ git \
41
+ --no-install-recommends && \
42
+ rm -rf /var/lib/apt/lists/*
43
+
44
+ RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | gpg --dearmor > /usr/share/keyrings/google-chrome-keyring.gpg \
45
+ && echo 'deb [signed-by=/usr/share/keyrings/google-chrome-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main' | tee /etc/apt/sources.list.d/google-chrome.list \
46
+ && apt-get update \
47
+ && apt-get install -y google-chrome-stable
48
+
49
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome \
50
+ PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \
51
+ PUPPETEER_CACHE_DIR=/tmp/puppeteer_cache \
52
+ NODE_ENV=production
53
 
54
  RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
55
  RUN apt-get install -y nodejs
 
89
 
90
  RUN pip install --upgrade pip
91
  RUN pip install --no-cache-dir --root-user-action=ignore -r requirements.txt
92
+ RUN npx puppeteer install
93
 
94
  RUN chmod -R 777 /app
95