This commit is contained in:
Ivan Sychev committed 2026-11-23 11:04:14 +03:00
1 parent 84ae2122b7
commit 3c4e8e6cee
54 files changed
+4329

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
FROM python:3.11-slim
WORKDIR /app
# Системные зависимости: build-essential для сборки пакетов, procps для healthcheck (pgrep)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
procps \
&& rm -rf /var/lib/apt/lists/*
# Копирование pyproject.toml и установка зависимостей (отдельный слой для кэширования)
COPY pyproject.toml ./
COPY src/ src/
RUN pip install --no-cache-dir .
# Healthcheck: проверяем, что процесс etl-service жив
HEALTHCHECK --interval=30s --timeout=5s --start-period=30s --retries=3 \
CMD pgrep -f "etl-service" > /dev/null || exit 1
CMD ["etl-service"]