|
|
|
FROM stawky/m3e-large-api:latest |
|
|
|
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
|
ENV PYTHON_VERSION=3.10.13 |
|
ENV PYTHON_PIP_VERSION=23.0.1 |
|
ENV PYTHON_SETUPTOOLS_VERSION=65.5.1 |
|
|
|
CMD ["python3"] |
|
WORKDIR /app |
|
|
|
RUN pip install --upgrade pip -i https://pypi.tuna.tsinghua.edu.cn/simple |
|
RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple |
|
RUN pip install uvicorn |
|
|
|
EXPOSE 6008 |
|
CMD ["uvicorn" "localembedding:app" "--host" "0.0.0.0" "--port" "6008"] |