FROM python:3.12-slim WORKDIR /app ENV PYTHONPATH=/app ENV PIP_INDEX_URL=https://mirrors.aliyun.com/pypi/simple/ ENV PIP_TRUSTED_HOST=mirrors.aliyun.com COPY requirements.txt ./ RUN python -m pip install --upgrade pip setuptools wheel && \ pip install --no-cache-dir --default-timeout=120 --retries 10 -r requirements.txt COPY apps/worker /app/apps/worker COPY packages /app/packages WORKDIR /app/apps/worker CMD ["celery", "-A", "worker_app.celery_app.celery_app", "worker", "--loglevel=info"]