2019-09-09 21:31:19 +00:00
|
|
|
FROM gcr.io/prysmaticlabs/build-agent AS builder
|
|
|
|
|
|
|
|
WORKDIR /workspace
|
|
|
|
|
|
|
|
COPY . /workspace/.
|
|
|
|
|
|
|
|
# Build binaries for minimal configuration.
|
|
|
|
RUN bazel build --define ssz=minimal --jobs=auto --remote_cache= \
|
|
|
|
//beacon-chain \
|
|
|
|
//validator \
|
|
|
|
//tools/interop/convert-keys
|
|
|
|
|
|
|
|
|
|
|
|
FROM gcr.io/whiteblock/base:ubuntu1804
|
|
|
|
|
|
|
|
COPY --from=builder /workspace/bazel-bin/beacon-chain/linux_amd64_stripped/beacon-chain .
|
|
|
|
COPY --from=builder /workspace/bazel-bin/validator/linux_amd64_pure_stripped/validator .
|
|
|
|
COPY --from=builder /workspace/bazel-bin/tools/interop/convert-keys/linux_amd64_stripped/convert-keys .
|
|
|
|
|
|
|
|
RUN mkdir /launch
|
|
|
|
|
2021-09-16 16:22:39 +00:00
|
|
|
COPY hack/interop_start.sh /launch/start.sh
|
2019-09-09 21:31:19 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["start.sh"]
|