videocopado / Dockerfile
tebicap's picture
sube 3 files
3e072a2 verified
raw
history blame contribute delete
613 Bytes
FROM python:3.9-slim
# Install Node.js and other dependencies
RUN apt-get update && apt-get install -y nodejs npm curl ffmpeg
# Install yt-dlp
RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/local/bin/yt-dlp
RUN chmod a+rx /usr/local/bin/yt-dlp
WORKDIR /app
# Copy and install Python requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# Copy package.json first
COPY package.json .
RUN npm install
# Copy the rest of the application
COPY . .
# Expose the port the app runs on
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"]