Merge pull request #143 from maticnetwork/arpit/bor-docker

docker file add bootnode
This commit is contained in:
Sandeep Sreenath 2021-06-22 11:09:59 +05:30 committed by GitHub
commit 5b11bb3c0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,12 +4,13 @@ FROM golang:1.16-alpine as builder
RUN apk add --no-cache make gcc musl-dev linux-headers git RUN apk add --no-cache make gcc musl-dev linux-headers git
ADD . /bor ADD . /bor
RUN cd /bor && make bor RUN cd /bor && make bor-all
# Pull Bor into a second stage deploy alpine container # Pull Bor into a second stage deploy alpine container
FROM alpine:latest FROM alpine:latest
RUN apk add --no-cache ca-certificates RUN apk add --no-cache ca-certificates
COPY --from=builder /bor/build/bin/bor /usr/local/bin/ COPY --from=builder /bor/build/bin/bor /usr/local/bin/
COPY --from=builder /bor/build/bin/bootnode /usr/local/bin/
EXPOSE 8545 8546 8547 30303 30303/udp EXPOSE 8545 8546 8547 30303 30303/udp