github.com/MetalBlockchain/metalgo@v1.11.9/tests/antithesis/xsvm/Dockerfile.workload (about)

     1  # TAG should identify the builder image
     2  ARG TAG
     3  
     4  # NODE_IMAGE needs to identify an existing node image and should include the tag
     5  ARG NODE_IMAGE
     6  
     7  # ============= Compilation Stage ================
     8  FROM antithesis-avalanchego-builder:$TAG AS builder
     9  
    10  # The builder workdir will vary between instrumented and non-instrumented builders
    11  ARG BUILDER_WORKDIR
    12  
    13  WORKDIR $BUILDER_WORKDIR
    14  
    15  # Build the workload
    16  RUN ./scripts/build_antithesis_xsvm_workload.sh
    17  
    18  # ============= Cleanup Stage ================
    19  # Base the workflow on the node image to support bootstrap testing
    20  FROM $NODE_IMAGE AS execution
    21  
    22  # The builder workdir will vary between instrumented and non-instrumented builders
    23  ARG BUILDER_WORKDIR
    24  
    25  # Copy the executable into the container
    26  COPY --from=builder $BUILDER_WORKDIR/build/antithesis-xsvm-workload ./workload
    27  
    28  CMD [ "./workload" ]