FROM python:3.12-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com -r requirements.txt COPY app.py config.py models.py logger.py init_db.py file_service.py ./ COPY routes/ ./routes/ COPY middleware/ ./middleware/ RUN mkdir -p /data/mokee/mokeetext/logs && mkdir -p static EXPOSE 4006 CMD sh -c "python init_db.py && uvicorn app:app --host 0.0.0.0 --port 4006"