Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
|
@@ -11,12 +11,12 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
# Step 3: Set up the working directory inside the container
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
-
# Step 4: Download
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
|
| 21 |
# Step 5: Copy all your repository files into the container
|
| 22 |
COPY . /app
|
|
@@ -25,4 +25,4 @@ COPY . /app
|
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
# Step 7: Command to start your Lichess bot
|
| 28 |
-
CMD ["python", "
|
|
|
|
| 11 |
# Step 3: Set up the working directory inside the container
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
+
# Step 4: Download, extract Stockfish (using the universal linux build), and add execute permissions
|
| 15 |
+
RUN mkdir -p stockfish && \
|
| 16 |
+
wget https://github.com/official-stockfish/Stockfish/releases/download/sf_18/stockfish-linux-x86-64-universal.tar.gz && \
|
| 17 |
+
tar -xzf stockfish-linux-x86-64-universal.tar.gz -C stockfish --strip-components=1 && \
|
| 18 |
+
rm -rf stockfish-linux-x86-64-universal.tar.gz && \
|
| 19 |
+
chmod +x stockfish/stockfish-linux-x86-64-universal
|
| 20 |
|
| 21 |
# Step 5: Copy all your repository files into the container
|
| 22 |
COPY . /app
|
|
|
|
| 25 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 26 |
|
| 27 |
# Step 7: Command to start your Lichess bot
|
| 28 |
+
CMD ["python", "lib/lichess_bot.py"]
|