FROM zgrab2_runner_base:latest WORKDIR /go/src/github.com/zmap # Grab the currently-active version of the source ADD . zgrab2 # This would instead grab it from the source repo # RUN go-wrapper download github.com/zmap/zgrab2 WORKDIR /go/src/github.com/zmap/zgrab2 RUN go get -v ./... RUN go get -v -t ./... # This should already be executable, but just in case... RUN chmod a+x ./docker-runner/entrypoint.sh # Build on the container RUN make container-clean CMD [] ENTRYPOINT ["/go/src/github.com/zmap/zgrab2/docker-runner/entrypoint.sh"]