youtube_mcp / Dockerfile
Jofthomas's picture
changes
a061382
raw
history blame contribute delete
769 Bytes
FROM python:3.11-slim
# System dependencies for audio processing
RUN apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg ca-certificates \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory in the container
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Writable default output directory for yt-dlp
ENV YT_AUDIO_DIR=/tmp/ytdl
RUN mkdir -p /tmp/ytdl /app/downloads && chmod 777 /tmp/ytdl /app/downloads
# Add entrypoint to allow runtime DNS/Proxy configuration
COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
EXPOSE 7860
ENV PORT=7860
CMD ["python", "app.py"]