kardosdrur commited on
Commit
7788fc8
1 Parent(s): 59abd04

Moved data caching to the docker build instead of startup

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -0
  2. download_data.py +3 -0
Dockerfile CHANGED
@@ -13,6 +13,9 @@ USER user
13
  COPY --chown=user ./main.py /mteb/main.py
14
  COPY --chown=user ./requirements.txt /mteb/requirements.txt
15
  RUN pip install -r /mteb/requirements.txt
 
16
 
17
  WORKDIR /mteb
 
 
18
  CMD ["python3", "main.py"]
 
13
  COPY --chown=user ./main.py /mteb/main.py
14
  COPY --chown=user ./requirements.txt /mteb/requirements.txt
15
  RUN pip install -r /mteb/requirements.txt
16
+ COPY --chown=user ./download_data.py /mteb/download_data.py
17
 
18
  WORKDIR /mteb
19
+ RUN python3 download_data.py
20
+
21
  CMD ["python3", "main.py"]
download_data.py ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ from mteb.leaderboard.app import load_results
2
+
3
+ load_results()