Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -12,7 +12,6 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
# Step 4: Download and extract Stockfish 18 safely
|
| 15 |
-
# This extracts it into a dedicated folder and skips the broken renaming command completely
|
| 16 |
RUN mkdir -p engines && \
|
| 17 |
wget https://github.com/official-stockfish/Stockfish/releases/download/sf_18/stockfish-ubuntu-x86-64-avx2.tar && \
|
| 18 |
tar -xf stockfish-ubuntu-x86-64-avx2.tar -C engines && \
|
|
@@ -21,6 +20,10 @@ RUN mkdir -p engines && \
|
|
| 21 |
# Step 5: Copy all your repository files into the container
|
| 22 |
COPY . /app
|
| 23 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Step 6: Install the Python requirements
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
|
|
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
# Step 4: Download and extract Stockfish 18 safely
|
|
|
|
| 15 |
RUN mkdir -p engines && \
|
| 16 |
wget https://github.com/official-stockfish/Stockfish/releases/download/sf_18/stockfish-ubuntu-x86-64-avx2.tar && \
|
| 17 |
tar -xf stockfish-ubuntu-x86-64-avx2.tar -C engines && \
|
|
|
|
| 20 |
# Step 5: Copy all your repository files into the container
|
| 21 |
COPY . /app
|
| 22 |
|
| 23 |
+
# Step 5.5: Fix permissions for the fairy stockfish engine
|
| 24 |
+
# This ensures Linux allows the bot to execute the binary
|
| 25 |
+
RUN chmod +x /app/fairy/stockfish
|
| 26 |
+
|
| 27 |
# Step 6: Install the Python requirements
|
| 28 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 29 |
|