Skip to content

Commit be02969

Browse files
committed
[antithesis] Fix configurator image
1 parent 746e89f commit be02969

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

compose/configurator/Dockerfile

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# syntax=docker/dockerfile:1.4
2-
ARG CARDANO_CLI_VERSION="${CARDANO_CLI_VERSION:-10.8.0.0}"
3-
ARG UV_VERSION="${UV_VERSION:-0.6.11}"
4-
51
# Blink Labs images are built from source on Debian Bookworm
62
FROM ghcr.io/blinklabs-io/cardano-node:latest AS cardano-node
73

8-
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv
9-
10-
FROM debian:stable-slim@sha256:377ddc2a20fe8632a49b69dcfff10fccbd5b4f0b8c2d593420a6a5e03070dfa1
4+
FROM ubuntu
115

126
USER root
137
# Install packages required in build stage
8+
149
RUN apt update && \
1510
apt install -y --no-install-recommends \
1611
ca-certificates \
1712
curl \
1813
git \
1914
tar \
2015
tree \
16+
python3 \
17+
python3-pip \
2118
jq
22-
# Copy uv from image
23-
COPY --from=uv --chown=root:root /uv /usr/local/bin/uv
2419

20+
# Install uv (fast Python package manager)
21+
RUN python3 -m pip install --break-system-packages uv
2522
# Create cardano-node source directory
2623
RUN install --directory --owner=root --group=root --mode=0755 /usr/local/src/cardano-node
2724

@@ -31,12 +28,14 @@ RUN git clone --branch main https://github.com/cardano-foundation/testnet-genera
3128

3229
# Download testnet-generation-tool dependencies
3330
WORKDIR /usr/local/src/testnet-generation-tool
31+
# dockerfile
32+
RUN uv sync
3433
# Copy binary from image
3534
COPY --from=cardano-node --chown=root:root /usr/local/bin/ ./cardano-node/bin/
3635
# Copy libsecp256k1 (also debian:bookwork-slim AKA stable-slim)
3736
COPY --from=cardano-node --chown=root:root /usr/local/lib/ /usr/lib/
38-
COPY --from=cardano-node --chown=root:root /usr/lib/ /usr/lib/
39-
RUN uv sync
37+
COPY --from=cardano-node --chown=root:root /usr/lib/ /tmp/cardano-node/local-lib/
38+
RUN cp -a --update=none /tmp/cardano-node/local-lib/. /usr/lib/
4039

4140
COPY configurator.sh /
4241
RUN chmod 0755 /configurator.sh

0 commit comments

Comments
 (0)