Update deployment scripts, add leaderboard feature, and bump version to 2.0.0

This commit is contained in:
2026-01-26 20:06:38 +08:00
parent 8d58bf683f
commit f3ce687ab8
13 changed files with 2777 additions and 1672 deletions

View File

@@ -1,6 +1,18 @@
FROM python:3.13.2
COPY . /app
FROM python:3.13.2-slim
# Install dependencies
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
RUN pip install -r requirements.txt
ENV PYTHONUNBUFFERED 1
CMD ["gunicorn", "app:app", "--access-logfile", "-", "--bind", "0.0.0.0"]
COPY requirements.txt /app/
RUN pip install --no-cache-dir -r requirements.txt
COPY . /app
ENV PYTHONUNBUFFERED=1
EXPOSE 80
CMD ["gunicorn", "app:app", "--access-logfile", "-", "--bind", "0.0.0.0:80"]