Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files- Dockerfile +10 -0
Dockerfile
CHANGED
|
@@ -5,6 +5,8 @@ WORKDIR /app
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
gcc \
|
|
|
|
|
|
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
# Install moonfish from PyPI (includes chess dependency)
|
|
@@ -36,6 +38,14 @@ RUN MOONFISH_PATH=$(python -c "import moonfish; import os; print(os.path.dirname
|
|
| 36 |
cp -r /tmp/rl/* ${MOONFISH_PATH}/rl/ && \
|
| 37 |
rm -rf /tmp/rl
|
| 38 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
# Expose port - HF Spaces expects 7860
|
| 40 |
EXPOSE 7860
|
| 41 |
|
|
|
|
| 5 |
# Install system dependencies
|
| 6 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
gcc \
|
| 8 |
+
curl \
|
| 9 |
+
unzip \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Install moonfish from PyPI (includes chess dependency)
|
|
|
|
| 38 |
cp -r /tmp/rl/* ${MOONFISH_PATH}/rl/ && \
|
| 39 |
rm -rf /tmp/rl
|
| 40 |
|
| 41 |
+
# Download cerebellum opening book
|
| 42 |
+
# Source: https://zipproth.de/Brainfish/download/
|
| 43 |
+
RUN mkdir -p /app/opening_book && \
|
| 44 |
+
curl -L -o /tmp/cerebellum.zip "https://zipproth.de/Brainfish/Cerebellum_Light.zip" && \
|
| 45 |
+
unzip -j /tmp/cerebellum.zip "Cerebellum_Light.bin" -d /app/opening_book && \
|
| 46 |
+
mv /app/opening_book/Cerebellum_Light.bin /app/opening_book/cerebellum.bin && \
|
| 47 |
+
rm /tmp/cerebellum.zip
|
| 48 |
+
|
| 49 |
# Expose port - HF Spaces expects 7860
|
| 50 |
EXPOSE 7860
|
| 51 |
|