BlueMoonBot commited on
Commit
3bc6c0b
·
verified ·
1 Parent(s): bdaebb2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -54,5 +54,6 @@ EXPOSE 7860
54
  # Force Python logs to output immediately
55
  ENV PYTHONUNBUFFERED=1
56
 
57
- # Step 8: Start a tiny background health server AND your Lichess bot
58
- CMD python -m http.server 7860 & python lichess-bot-master/lichess-bot.py
 
 
54
  # Force Python logs to output immediately
55
  ENV PYTHONUNBUFFERED=1
56
 
57
+ # This creates a folder called 'www', puts an empty index file in it,
58
+ # and tells the server to only show that folder.
59
+ CMD mkdir -p www && touch www/index.html && python3 -m http.server 7860 --directory www & python3 lichess-bot-master/lichess-bot.py