Hellbot / Dockerfile
Ufoptg's picture
Upload 93 files
78b07ad verified
raw
history blame
628 Bytes
FROM python:3.9.5-buster
RUN apt-get update
RUN apt-get install --no-install-recommends -y python3-dev python3-pip python3-virtualenv git mediainfo nano ffmpeg unzip
COPY ./reqs.txt /Hellbot/reqs.txt
RUN pip3 install --no-cache-dir -U -r /Hellbot/reqs.txt
WORKDIR /Hellbot
RUN pip3 install -U pip
COPY . .
RUN chown -R 1000:0 .
RUN chmod 777 .
RUN chown -R 1000:0 /usr
RUN chmod 777 /usr
EXPOSE 7860
# Add a script for periodic redeployment
COPY start.sh /Hellbot/start.sh
RUN chmod +x /Hellbot/start.sh
# Run the restart script
CMD ["bash", "-c", "python3 server.py & /Hellbot/start.sh"]