davidberenstein1957 commited on
Commit
9737764
·
verified ·
1 Parent(s): ba20520

Uploaded Dockerfile from GitHub repository

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:22-bookworm-slim
2
+
3
+ ENV DEBIAN_FRONTEND noninteractive
4
+
5
+ # for arm64 support we need to install chromium provided by debian
6
+ # npm ERR! The chromium binary is not available for arm64.
7
+ # https://github.com/puppeteer/puppeteer/issues/7740
8
+
9
+ ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
10
+ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
11
+
12
+ RUN apt-get update && \
13
+ apt-get install -y wget gnupg && \
14
+ apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
15
+ libgtk2.0-0 libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libgbm1 libasound2 && \
16
+ apt-get install -y chromium && \
17
+ apt-get clean
18
+
19
+ COPY src/puppeteer /project
20
+ COPY tsconfig.json /tsconfig.json
21
+
22
+ WORKDIR /project
23
+
24
+ RUN npm install
25
+
26
+ ENTRYPOINT ["node", "dist/index.js"]