lelafav502 commited on
Commit
11d7f8d
Β·
verified Β·
1 Parent(s): f8b6ed1

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Node.js image as a base image
2
+ FROM node:20
3
+
4
+ # Install necessary libraries and dependencies for Puppeteer
5
+ RUN apt-get update && apt-get install -y \
6
+ libgconf-2-4 \
7
+ libnss3 \
8
+ libx11-xcb1 \
9
+ libxcomposite1 \
10
+ libxdamage1 \
11
+ libxrandr2 \
12
+ libxss1 \
13
+ libxtst6 \
14
+ libgtk-3-0 \
15
+ libatspi2.0-0 \
16
+ libgdk-pixbuf2.0-0 \
17
+ libpango-1.0-0 \
18
+ libpangocairo-1.0-0 \
19
+ libcups2 \
20
+ libdbus-1-3 \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ # Install Puppeteer
24
+ RUN npm install puppeteer
25
+
26
+ # Set up your working directory
27
+ WORKDIR /app
28
+
29
+ # Copy your application files into the Docker image
30
+ COPY . /app
31
+
32
+ # Set the command to run your application
33
+ CMD ["node", "app.js"]