FROM python:3.10-slim WORKDIR /code COPY . /code/ RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # 默认运行命令 CMD ["python", "app.py"]