BlueMoonBot commited on
Commit
fbfe1df
·
verified ·
1 Parent(s): 476646c

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -7
Dockerfile CHANGED
@@ -11,15 +11,16 @@ 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 chmod +x ./fairy/fairy-stockfish-largeboard_x86-64-bmi2
17
-
18
- # Step 5: Copy all your repository files into the container
19
  COPY . /app
20
 
21
- # Step 6: Install the Python requirements
22
  RUN pip install --no-cache-dir -r requirements.txt
23
 
 
 
 
 
24
  # Step 7: Command to start your Lichess bot
25
- 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: Copy all your repository files into the container FIRST
15
+ # (This brings your 'fairy' folder and engine file into Docker)
 
 
 
16
  COPY . /app
17
 
18
+ # Step 5: Install the Python requirements
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Step 6: Now grant execute permission to your variant engine
22
+ # (This works now because the file has been copied into the container)
23
+ RUN chmod +x ./fairy/fairy-stockfish-largeboard_x86-64-bmi2
24
+
25
  # Step 7: Command to start your Lichess bot
26
+ CMD ["python", "lichess-bot-master/lichess-bot.py"]