/ Dockerfile
Dockerfile
1 # BUILD IMAGE -------------------------------------------------------- 2 FROM golang:1.19-alpine3.16 as builder 3 4 # Get build tools and required header files 5 RUN apk add --no-cache build-base 6 RUN apk add --no-cache bash 7 RUN apk add --no-cache git 8 9 WORKDIR /app 10 COPY . . 11 12 # Build the final node binary 13 RUN go build 14 15 # ACTUAL IMAGE ------------------------------------------------------- 16 17 FROM alpine:3.16 18 19 # color, nocolor, json 20 ENV GOLOG_LOG_FMT=nocolor 21 22 # go-waku default ports 23 EXPOSE 6000 24 25 COPY --from=builder /app/discv5 /usr/bin/discv5 26 27 ENTRYPOINT ["/usr/bin/discv5"]