Update deployment scripts, add leaderboard feature, and bump version to 2.0.0
This commit is contained in:
22
Dockerfile
22
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user