BanBot / Dockerfile
SoulofSukuna's picture
Update Dockerfile
79e4ef5 verified
raw
history blame contribute delete
409 Bytes
FROM python:3.9.5-buster
RUN ln -sf /usr/share/zoneinfo/Australia/Perth /etc/localtime
RUN apt-get update
COPY ./reqs.txt /banObot/reqs.txt
RUN pip3 install --no-cache-dir -U -r /banObot/reqs.txt
WORKDIR /banObot
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
CMD ["bash", "-c", "python3 server.py & python3 code.py"]