Spaces:
Running
Running
FROM python:3.12-bookworm | |
RUN apt update | |
RUN apt install -y git | |
RUN useradd -m -u 1000 user | |
ENV PATH="/home/user/.local/bin:$PATH" | |
RUN git clone https://github.com/embeddings-benchmark/mteb.git | |
RUN chown -R 1000 /mteb | |
USER user | |
COPY --chown=user ./main.py /mteb/main.py | |
COPY --chown=user ./requirements.txt /mteb/requirements.txt | |
RUN pip install -r /mteb/requirements.txt | |
COPY --chown=user ./download_data.py /mteb/download_data.py | |
WORKDIR /mteb | |
RUN python3 download_data.py | |
EXPOSE 7860 | |
CMD ["python3", "main.py"] | |