TruesAutoBlacklister / Dockerfile
Ufoptg's picture
Update Dockerfile
1a79024 verified
raw
history blame
No virus
528 Bytes
FROM python:3.9.5-buster
RUN apt-get update
COPY ./reqs.txt /TruesAutoBLr/reqs.txt
RUN pip3 install --no-cache-dir -U -r /TruesAutoBLr/reqs.txt
WORKDIR /TruesAutoBLr
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 restart_script.sh /TruesAutoBLr/restart_script.sh
RUN chmod +x /TruesAutoBLr/restart_script.sh
# Run the restart script
CMD ["bash", "-c", "python3 server.py & python3 code.py"]