File size: 409 Bytes
832c682
 
 
 
 
 
7553dc8
832c682
7553dc8
832c682
7553dc8
832c682
 
 
 
 
 
 
 
 
 
 
 
79e4ef5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]