FROM python:3.9 | |
RUN apt update -y && apt install -y git | |
WORKDIR /code | |
RUN git clone https://gitee.com/net-pan-resource-share/simple-admin.git | |
RUN pip install --no-cache-dir --upgrade -r /code/simple-admin/requirements.txt | |
WORKDIR /code/simple-admin | |
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "10"] |