Dockerfile: install rocksdb-ng in its own layer, so code changes do not recompile it
CI / unittests (ubuntu-24.04-arm) (push) Canceled after 0s
CI / unittests (ubuntu-24.04) (push) Canceled after 0s
CI / pycodestyle (push) Canceled after 0s
CI / build_docs (push) Canceled after 0s
CI / docker (ubuntu-24.04-arm) (push) Canceled after 0s
CI / docker (ubuntu-24.04) (push) Canceled after 0s
CI / integration (leveldb, ubuntu-24.04-arm) (push) Canceled after 0s
CI / integration (leveldb, ubuntu-24.04) (push) Canceled after 0s
CI / integration (rocksdb, ubuntu-24.04-arm) (push) Canceled after 0s
CI / integration (rocksdb, ubuntu-24.04) (push) Canceled after 0s

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
davideandClaude Sonnet 5.5 committed 2026-10-25 11:47:40 +01:00
1 parent be689666cd
commit 37d67385f4
1 file changed
+6 -2
+6 -2
View File
@@ -16,10 +16,14 @@ RUN apt-get update \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# rocksdb-ng is compiled from source (a single C++ translation unit, slow, especially under QEMU for arm64): install it
# in its own layer, before the source is copied, so that changing the code does not recompile it
RUN python -m venv venv \
&& venv/bin/pip install --no-cache-dir rocksdb-ng
COPY pyproject.toml README.md LICENCE MANIFEST.in ./
COPY src ./src
RUN python -m venv venv \
&& venv/bin/pip install --no-cache-dir ".[rocksdb]"
RUN venv/bin/pip install --no-cache-dir ".[rocksdb]"
FROM python:3.14-slim-trixie