File size: 793 Bytes
cd3391d
e6dd249
 
 
cd3391d
 
 
 
 
 
 
 
e6dd249
5fa706b
e6dd249
5fa706b
e6dd249
5ac8def
 
e1c7307
dd1b2d7
 
6bad111
de44267
5ac8def
8499ff9
 
5fa706b
e6dd249
8fd9f35
ce40dc6
5fa706b
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
26
27
28
29
30
31
32
FROM python:3.11

WORKDIR /code

RUN apt-get update
RUN apt-get install python3.10 -y
RUN apt-get install python-is-python3 -y
RUN apt-get install pip -y
RUN apt-get install git -y
RUN apt-get install curl -y
RUN apt-get install wget -y
RUN apt-get install ffmpeg -y

RUN git clone https://github.com/yinhw0210/dataAnalysis-backend.git /code

RUN pip install -r /code/requirements.txt

COPY ./config.template.ini /code/config.ini
COPY ./config.template.ini /config.ini
COPY ./deploy.sh /code/deploy.sh
COPY ./system_health.py /code/system_health.py

RUN cat /code/system_health.py >> /code/src/routes/system.py
RUN cat /code/src/routes/system.py

RUN chmod 777 -R /code

RUN chmod +x /code/deploy.sh

RUN git config --global --add safe.directory "*"

CMD ["/code/deploy.sh", "7860", "0.0.0.0"]