| 12345678910111213141516171819202122232425262728293031 | FROM python:3.10-slim AS baseLABEL maintainer="xujiawei@cocorobo.cc"RUN apt-get update \    && apt-get install -y --no-install-recommends bash curl wget vim libmagic-dev \    && apt-get autoremove \    && rm -rf /var/lib/apt/lists/*RUN pip install --no-cache-dir poetry -i https://pypi.tuna.tsinghua.edu.cn/simple \    && poetry config virtualenvs.create falseCOPY poetry.lock /env/poetry.lockCOPY pyproject.toml /env/pyproject.toml#RUN poetry config repositories.pypi https://pypi.tuna.tsinghua.edu.cn/simple#RUN cd /env && poetry lock --no-update && poetry install --only mainRUN cd /env && poetry lock && poetry install --only main#RUN pip install openai==1.27.0 -i https://pypi.tuna.tsinghua.edu.cn/simpleEXPOSE 8086WORKDIR /appCOPY . /appCOPY docker/entrypoint.sh /entrypoint.shRUN chmod +x /entrypoint.shENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
 |