FROM ubuntu:20.04 RUN mkdir /opt/app COPY . /opt/app/ WORKDIR /opt/app RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get upgrade -y RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python3.10 python3-pip RUN pip3 install --default-timeout=300 -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ RUN chmod 777 entrypoint.sh ENTRYPOINT ["./entrypoint.sh"]