Reaperxxxx commited on
Commit
3fb8c0b
·
verified ·
1 Parent(s): 9d00717

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Node.js image as the base image
2
+ FROM node:16
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install Chromium
8
+ RUN apt-get update && apt-get install -y wget curl gnupg ca-certificates
9
+ RUN curl -sSL https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb -o google-chrome.deb
10
+ RUN dpkg -i google-chrome.deb || apt-get install -f -y
11
+ RUN rm google-chrome.deb
12
+
13
+ # Install dependencies
14
+ COPY package.json package-lock.json ./
15
+ RUN npm install
16
+
17
+ # Copy the server.js to the working directory
18
+ COPY . .
19
+
20
+ # Expose the port
21
+ EXPOSE 7860
22
+
23
+ # Run the server.js
24
+ CMD ["node", "server.js"]