Mobile-game style coal grinding: combo counter and ranks, HUD with popups and confetti, XP/coins/daily quest, dancing client-side pets, Coal Maniac mode, coal ESP and guide arrow (off on multiplayer by default), tool durability warnings and an English lang file. Opt-in online features backed by the Flask server in backend/: leaderboard, shared team combo per server, Help pings and a Help servers list, protected by a one-time captcha token and a proof of work. Includes Docker/Caddy deployment files and Fabric client game tests (single player, team combo and a two-client scenario). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
12 lines
457 B
Docker
12 lines
457 B
Docker
FROM python:3.12-slim
|
|
WORKDIR /app
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
COPY app.py .
|
|
ENV COMBOCOAL_DB=/data/combocoal.db \
|
|
COMBOCOAL_SECRET_FILE=/data/secret.key \
|
|
COMBOCOAL_BEHIND_PROXY=1
|
|
VOLUME /data
|
|
EXPOSE 8000
|
|
# All shared state (team combo, used proof-of-work challenges) lives in SQLite, so more workers are fine.
|
|
CMD ["gunicorn", "--workers", "2", "--threads", "8", "--bind", "0.0.0.0:8000", "app:app"]
|