File size: 536 Bytes
0bc4572
fe6976e
0bc4572
71575e4
 
0bc4572
fe6976e
 
 
0bc4572
fe6976e
 
0bc4572
 
 
fe6976e
0bc4572
fe6976e
71575e4
0bc4572
 
71575e4
0bc4572
 
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
FROM node:20

# Install ffmpeg
RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/*

# Create a non-root user with UID 1000
RUN useradd -m -u 1000 user
USER user

# Set working directory
WORKDIR /app

# Copy package files and install dependencies
COPY --chown=user package*.json ./
RUN npm install

# Copy the rest of the application source
COPY --chown=user . /app

# Expose the port if needed (optional, depending on the hosting environment)
EXPOSE 7860

# Run the Node.js application
CMD ["node", "app.js"]