File size: 457 Bytes
790a401 aa6ae8d 31f3efc aa6ae8d 790a401 aa6ae8d 790a401 24927fd 790a401 aa6ae8d 790a401 aa6ae8d 790a401 9ff1078 aa6ae8d 790a401 aa6ae8d 790a401 aa6ae8d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# Use official Node.js base image
FROM node:18
# Install FFmpeg and aria2
RUN apt-get update && apt-get install -y ffmpeg aria2 curl && rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy dependencies
COPY package.json ./
RUN npm install
# Copy project files
COPY . .
# Create downloads directory
RUN mkdir -p /app/downloads && chmod -R 777 /app/downloads
# Expose API port
EXPOSE 7860
# Start the server
CMD ["node", "server.js"] |