Skip to content

Commit 4ec185c

Browse files
committed
Dockerize kafka loader
1 parent 8539dc7 commit 4ec185c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile.kafka

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.12-slim
2+
3+
RUN apt-get update && apt-get install -y --no-install-recommends \
4+
build-essential \
5+
curl \
6+
&& rm -rf /var/lib/apt/lists/*
7+
8+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
9+
10+
WORKDIR /app
11+
12+
COPY pyproject.toml README.md ./
13+
COPY src/ ./src/
14+
COPY apps/ ./apps/
15+
16+
RUN uv pip install --system --no-cache . && \
17+
uv pip install --system --no-cache kafka-python lmdb
18+
19+
ENV PYTHONPATH=/app
20+
ENV PYTHONUNBUFFERED=1
21+
22+
ENTRYPOINT ["python", "apps/kafka_streaming_loader.py"]
23+
CMD ["--help"]

0 commit comments

Comments
 (0)