leaderboard_2_demo / Dockerfile
kardosdrur's picture
Made sure to expose port
8a8b0ac
raw
history blame contribute delete
520 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
RUN python3 download_data.py
EXPOSE 7860
CMD ["python3", "main.py"]