xwwww commited on
Commit
b03975e
·
verified ·
1 Parent(s): f57b509

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Node.js runtime as a parent image
2
+ FROM node:18
3
+
4
+ # Set the working directory in the container
5
+ WORKDIR /usr/src/app
6
+
7
+ # Install git to clone the repository
8
+ RUN apt-get update && apt-get install -y git
9
+
10
+ # Clone the repository from GitHub
11
+ RUN git clone https://github.com/KarinJS/karin-puppeteer.git .
12
+
13
+ # Install dependencies
14
+ RUN npm install
15
+
16
+ # Build the app (if necessary)
17
+ RUN npm run build
18
+
19
+ # Make port 3000 available to the world outside this container
20
+ EXPOSE 7860
21
+
22
+ # Define environment variable
23
+ ENV NODE_ENV=production
24
+
25
+ # Run the app
26
+ CMD ["node", "app"]