Reaperxxxx commited on
Commit
aa6ae8d
·
verified ·
1 Parent(s): ece4c92

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use official Node.js 18 base image
2
+ FROM node:18
3
+
4
+ # Set the working directory inside the container
5
+ WORKDIR /app
6
+
7
+ # Create a package.json file inside the container
8
+ RUN npm init -y
9
+
10
+ # Install required dependencies
11
+ RUN npm install express axios fs path progress-stream
12
+
13
+ # Copy all project files to the container
14
+ COPY . .
15
+
16
+ # Create required directories
17
+ RUN mkdir -p /app/downloads
18
+
19
+ # Set correct permissions for the directories
20
+ RUN chmod -R 755 /app
21
+
22
+ # Expose port 3000 for Express API
23
+ EXPOSE 7860
24
+
25
+ # Start the Node.js server
26
+ CMD ["node", "server.js"]