luccabb commited on
Commit
23f0779
·
verified ·
1 Parent(s): c22d87b

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -7
Dockerfile CHANGED
@@ -6,7 +6,6 @@ WORKDIR /app
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  gcc \
8
  curl \
9
- p7zip-full \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Install moonfish from PyPI (includes chess dependency)
@@ -38,13 +37,10 @@ RUN MOONFISH_PATH=$(python -c "import moonfish; import os; print(os.path.dirname
38
  cp -r /tmp/rl/* ${MOONFISH_PATH}/rl/ && \
39
  rm -rf /tmp/rl
40
 
41
- # Download cerebellum opening book (~74MB)
42
- # Source: https://zipproth.de/Brainfish/download/
43
  RUN mkdir -p /app/opening_book && \
44
- curl -L -o /tmp/cerebellum.7z "https://zipproth.de/Brainfish/Cerebellum_Light_3Merge_200916.7z" && \
45
- 7z x /tmp/cerebellum.7z -o/tmp/cerebellum && \
46
- find /tmp/cerebellum -name "*.bin" -exec cp {} /app/opening_book/cerebellum.bin \; && \
47
- rm -rf /tmp/cerebellum.7z /tmp/cerebellum
48
 
49
  # Expose port - HF Spaces expects 7860
50
  EXPOSE 7860
 
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  gcc \
8
  curl \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Install moonfish from PyPI (includes chess dependency)
 
37
  cp -r /tmp/rl/* ${MOONFISH_PATH}/rl/ && \
38
  rm -rf /tmp/rl
39
 
40
+ # Download cerebellum opening book from moonfish GitHub repo (~170MB)
 
41
  RUN mkdir -p /app/opening_book && \
42
+ curl -L -o /app/opening_book/cerebellum.bin \
43
+ "https://github.com/luccabb/moonfish/raw/master/opening_book/cerebellum.bin"
 
 
44
 
45
  # Expose port - HF Spaces expects 7860
46
  EXPOSE 7860