FROM python:3.10-slim WORKDIR /code COPY ./requirements.txt /code/requirements.txt COPY ./app /code/app COPY .env_pro /code/.env RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential && \ pip install --no-cache-dir --upgrade -r /code/requirements.txt && \ mkdir -p /code/ml_models ENV PYTHONPATH=/code ENV TZ=Asia/Shanghai EXPOSE 8002 CMD ["uvicorn", "app.main:app", "--log-level", "info", "--host", "0.0.0.0", "--port", "8002"]