Files
xiaoxia-saas/infra/docker/worker.Dockerfile
T
Xiaoxia AI 35f9ff1d82
Tests / test (push) Failing after 1m10s
Tests / lint (push) Failing after 41s
fix: switch docker pip mirror to aliyun
2026-06-15 18:53:37 +08:00

13 lines
499 B
Docker

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"]