FROM golang AS build WORKDIR /opt/build COPY . /opt/build RUN go get -v && go build -v -o gopherhole . FROM ubuntu COPY --from=build /opt/build/gopherhole /opt/gopherhole/gopherhole COPY ./config.json /opt/gopherhole/config.json ENV GOPHERHOLE_BIND_ADDRESS 127.0.0.1 RUN apt-get update && apt-get install -y ca-certificates && apt-get clean WORKDIR /opt/gopherhole EXPOSE 53/udp 53/tcp 80/tcp ENTRYPOINT ["/opt/gopherhole/gopherhole"] CMD ["-bind-http=0.0.0.0", "-bind-dns=0.0.0.0"]