Spaces:
Runtime error
Runtime error
# Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
# you will also find guides on how best to write your Dockerfile | |
FROM python:3.10 | |
RUN useradd -m -u 1000 user | |
USER user | |
ENV PATH="/home/user/.local/bin:$PATH" | |
WORKDIR /infinity_emb | |
RUN pip install --no-cache-dir -qU pip | |
RUN pip install --no-cache-dir -qU 'infinity-emb[server,cache,logging,einops,torch,optimum]' | |
CMD ["infinity_emb", "v2", "--host", "0.0.0.0", "--port", "7860"] |