#FROM registry.cn-hangzhou.aliyuncs.com/fastgpt_docker/m3e-large-api:latest | |
FROM stawky/m3e-large-api:latest | |
ENV PATH=/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
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"] |