txtorg commited on
Commit
86712fb
·
verified ·
1 Parent(s): 47476c3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Node.js image
2
+ FROM node:18
3
+
4
+ # Install FFmpeg
5
+ RUN apt-get update && \
6
+ apt-get install -y ffmpeg && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # Set the working directory
10
+ WORKDIR /app
11
+
12
+ RUN npm install express axios cors fluent-ffmpeg
13
+
14
+ # Copy the rest of the application
15
+ COPY . .
16
+
17
+ # Expose port 3000
18
+ EXPOSE 7860
19
+
20
+ # Start the server
21
+ CMD ["node", "server.js"]