Dynavera/compose/dev/celery/Dockerfile

20 lines
468 B
Text
Raw Normal View History

2025-12-10 13:44:16 +00:00
FROM python:3.12-bookworm
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
libpq-dev \
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*
ENV VIRTUAL_ENV=/venv \
PATH=/venv/bin:$PATH
RUN python -m venv /venv
2025-12-10 13:44:16 +00:00
WORKDIR /app
2025-12-10 13:44:16 +00:00
COPY requirements/base.txt .
RUN pip install --no-cache-dir --requirement base.txt
2025-12-10 13:44:16 +00:00
CMD ["celery", "-A", "config", "worker", "-l", "info"]