BlueMoonBot commited on
Commit
f7bddf5
·
verified ·
1 Parent(s): 084c914

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -21,11 +21,13 @@ RUN mkdir -p engines && \
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
 
30
- # Step 7: Command to start your Lichess bot
31
- CMD ["python", "lichess-bot-master/lichess-bot.py"]
 
 
 
 
21
  COPY . /app
22
 
23
  # Step 5.5: Fix permissions for the fairy stockfish engine
 
24
  RUN chmod +x /app/fairy/stockfish
25
 
26
  # Step 6: Install the Python requirements
27
  RUN pip install --no-cache-dir -r requirements.txt
28
 
29
+ # Step 6.5: Inform Hugging Face that we are opening port 7860
30
+ EXPOSE 7860
31
+
32
+ # Step 7: Start a dummy web server on port 7860 in the background, then launch your Lichess bot
33
+ CMD python -m http.server 7860 & python lichess-bot-master/lichess-bot.py