test-discv5/Dockerfile
2023-07-05 18:02:21 -04:00

28 lines
569 B
Docker

# BUILD IMAGE --------------------------------------------------------
FROM golang:1.19-alpine3.16 as builder
# Get build tools and required header files
RUN apk add --no-cache build-base
RUN apk add --no-cache bash
RUN apk add --no-cache git
WORKDIR /app
COPY . .
# Build the final node binary
RUN go build
# ACTUAL IMAGE -------------------------------------------------------
FROM alpine:3.16
# color, nocolor, json
ENV GOLOG_LOG_FMT=nocolor
# go-waku default ports
EXPOSE 6000
COPY --from=builder /app/discv5 /usr/bin/discv5
ENTRYPOINT ["/usr/bin/discv5"]