github.com/MetalBlockchain/metalgo@v1.11.9/tests/antithesis/avalanchego/Dockerfile.builder-uninstrumented (about) 1 # The version is supplied as a build argument rather than hard-coded 2 # to minimize the cost of version changes. 3 ARG GO_VERSION 4 5 FROM golang:$GO_VERSION-bullseye 6 7 WORKDIR /build 8 # Copy and download avalanche dependencies using go mod 9 COPY go.mod . 10 COPY go.sum . 11 RUN go mod download 12 13 # Copy the code into the container 14 COPY . . 15 16 # Ensure pre-existing builds are not available for inclusion in the final image 17 RUN [ -d ./build ] && rm -rf ./build/* || true