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"]