FROM python:3.9.5-buster # Install dependencies RUN apt-get update && \ apt-get install --no-install-recommends -y \ python3-dev \ python3-pip \ python3-virtualenv \ git \ mediainfo \ nano \ ffmpeg \ unzip && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* # Copy requirements and install them COPY ./reqs.txt /Hellbot/reqs.txt RUN pip3 install --no-cache-dir -U -r /Hellbot/reqs.txt # Set working directory WORKDIR /Hellbot # Copy the application code COPY . . # Set appropriate permissions RUN chown -R 1000:0 /Hellbot && \ chmod -R 755 /Hellbot && \ chmod +x /Hellbot/start.sh # Expose port EXPOSE 7860 # Start the application using the start.sh script CMD ["./start.sh"]