File size: 474 Bytes
8b340cc
 
 
 
 
 
 
 
 
 
 
384f8a1
8b340cc
 
c47762a
8b340cc
 
f066a18
8b340cc
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Base image with Node.js
FROM node:20

# Install FFmpeg

# Create app directory
WORKDIR /app

# Copy package files

# Install dependencies


# Copy rest of the app
RUN rm -rf /app/*
RUN git clone https://github.com/ReirLair/newX.git /app
COPY . .
RUN npm install fs-extra mongodb node-cron uuid express axios multer cors mime-types
# Set 777 permissions on app directory
RUN chmod -R 777 /app

# Expose the app port
EXPOSE 7860

# Start the server
CMD ["node", "server.js"]