Jonell01 commited on
Commit
e64bfb2
·
verified ·
1 Parent(s): 9d048ef

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +36 -0
Dockerfile ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use a valid Node.js base image
2
+ FROM node:18
3
+
4
+ # Update and install required dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ libgbm1 \
7
+ libasound2 \
8
+ libnss3 \
9
+ libatk1.0-0 \
10
+ libx11-xcb1 \
11
+ libxcomposite1 \
12
+ libxdamage1 \
13
+ libxrandr2 \
14
+ libgbm-dev \
15
+ libgtk-3-0 \
16
+ libpango-1.0-0 \
17
+ libcairo2 \
18
+ libatspi2.0-0 \
19
+ libdrm2 \
20
+ libxshmfence1 \
21
+ && rm -rf /var/lib/apt/lists/*
22
+
23
+ # Set working directory inside the container
24
+ WORKDIR /app
25
+
26
+ # Copy package files and install dependencies
27
+ COPY package*.json ./
28
+ RUN npm install
29
+
30
+ # Copy all project files
31
+ COPY . .
32
+ RUN chmod -R 777 /app
33
+ EXPOSE 7860
34
+ USER root
35
+ # Set the command to run the bot
36
+ CMD ["node", "index.js"]