FROM python:3.13-slim WORKDIR /app # Build: 2026-05-19 token+wxbinding sync COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py database.py wsgi.py config.py scraper.py scraper_chinacsa.py structured_logger.py ./ COPY static/ static/ COPY data/short_track.db data/ ENV SERVER_ROLE=slave ENV PEER_URL=http://122.51.80.140:5000 ENV SYNC_SECRET=st_sync_secret_2026 ENV ISSUED_TEAM_ID=chaoyang EXPOSE 7860 CMD ["gunicorn", "--workers", "1", "--bind", "0.0.0.0:7860", "--timeout", "120", "--access-logfile", "-", "wsgi:app"]