14 lines
235 B
Docker
14 lines
235 B
Docker
|
|
# backend/Dockerfile
|
|
FROM python:3.12-slim
|
|
|
|
WORKDIR /app
|
|
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
# 使用 Gunicorn + Gevent 启动
|
|
CMD ["gunicorn", "-c", "gunicorn_config.py", "run:app"]
|