leaderboard_2_demo / Dockerfile
kardosdrur's picture
Removed download on build, since the build instance might not have enough ram
ad5d2ae verified
raw
history blame contribute delete
491 Bytes
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
EXPOSE 7860
CMD ["python3", "main.py"]