Team Ai
Apppublic

sourcecode6687/Gupshup

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile40 linesDownload Raw Back to root
1# Use Python 3.102FROM python:3.103 4# Set working directory5WORKDIR /app6 7# 1. Install System Dependencies & FFmpeg8# We include 'ca-certificates' and 'gnupg' for secure Node installation9RUN apt-get update && apt-get install -y \10    ffmpeg \11    curl \12    git \13    gnupg \14    ca-certificates \15    iputils-ping \16    build-essential \17    && rm -rf /var/lib/apt/lists/*18 19# 2. Install Node.js (Official Way)20# This ensures 'node' command is definitely available for yt-dlp21RUN mkdir -p /etc/apt/keyrings && \22    curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && \23    echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_20.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list && \24    apt-get update && apt-get install -y nodejs25 26# 3. Create User27RUN useradd -m -u 1000 user28USER user29ENV PATH="/home/user/.local/bin:$PATH"30 31# 4. Install Python Requirements32COPY --chown=user:user requirements.txt requirements.txt33RUN pip install --no-cache-dir --upgrade -r requirements.txt34 35# 5. Copy Application36COPY --chown=user:user . .37 38# Expose & Start39EXPOSE 786040CMD ["python", "app.py"]