Skip to content

Commit 95a8f61

Browse files
committed
feat: smaller image
1 parent d938bda commit 95a8f61

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Dockerfile

+10-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ COPY README.md /app/README.md
1111
COPY tests /app/tests
1212
COPY build.py /app/build.py
1313

14-
RUN uv pip install --system .
14+
RUN uv venv /virtualenv && . /virtualenv/bin/activate && uv pip install -e .
15+
16+
FROM python:3.12-slim-bookworm
17+
18+
COPY --from=builder /virtualenv /virtualenv
19+
COPY --from=builder /app /app
20+
ENV PATH="/virtualenv/bin:$PATH"
21+
22+
WORKDIR /app
1523

1624
ENTRYPOINT [ "eth-validator-watcher" ]
25+

0 commit comments

Comments
 (0)