15 lines
349 B
Docker
15 lines
349 B
Docker
FROM python:3.12-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
PYTHONPATH=/app/services/worker/src
|
|
|
|
WORKDIR /app
|
|
|
|
COPY services/worker/pyproject.toml /tmp/worker-pyproject.toml
|
|
RUN pip install --no-cache-dir pydantic pydantic-settings
|
|
|
|
COPY services/worker services/worker
|
|
|
|
CMD ["python", "-m", "yuqei_worker.main", "--health"]
|