enzostvs HF staff commited on
Commit
f60638a
β€’
1 Parent(s): 709209d

update dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -12
Dockerfile CHANGED
@@ -3,19 +3,17 @@
3
  FROM node:18
4
  USER 1000
5
 
6
- # We don't need the standalone Chromium
7
- ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
8
- ENV CHROME_BIN=/usr/bin/google-chrome
9
-
10
- # Install Google Chrome Stable and fonts
11
- # Note: this installs the necessary libs to make the browser work with Puppeteer.
12
- RUN apt-get update && apt-get install curl gnupg -y \
13
- && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
14
- && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
15
- && apt-get update \
16
- && apt-get install google-chrome-stable -y --no-install-recommends \
17
- && rm -rf /var/lib/apt/lists/*
18
 
 
 
 
 
 
19
  # Set the working directory in the container
20
  WORKDIR /usr/src/app
21
 
 
3
  FROM node:18
4
  USER 1000
5
 
6
+ ENV PUPPETEER_SKIP_DOWNLOAD=True
7
+ RUN apt-get update \
8
+ && apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
9
+ --no-install-recommends \
10
+ && rm -rf /var/lib/apt/lists/*;
 
 
 
 
 
 
 
11
 
12
+ RUN apt-get update \
13
+ && apt-get update \
14
+ && apt-get install -y chromium \
15
+ --no-install-recommends \
16
+ && rm -rf /var/lib/apt/lists/*;
17
  # Set the working directory in the container
18
  WORKDIR /usr/src/app
19