BlueMoonBot commited on
Commit
bbdc640
·
verified ·
1 Parent(s): fef5342

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 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 && \
19
- rm -rf stockfish-ubuntu-x86-64-avx2.tar
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", "lichess-bot-master/lichess-bot.py"]
 
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"]