github.com/network-quality/goresponsiveness@v0.0.0-20240129151524-343954285090/Dockerfile (about) 1 # Dockerfile to clone the goresponsiveness repository 2 # build the binary 3 # make it ready to run 4 5 # Build with: docker build -t goresp . 6 7 # Run with: docker run --rm goresp 8 9 FROM golang:1.21.6-alpine3.19 10 11 RUN mkdir /goresponsiveness 12 ADD . /goresponsiveness 13 WORKDIR /goresponsiveness 14 15 RUN go mod download 16 RUN go build -o networkQuality networkQuality.go 17 18 # `docker run` invokes the networkQuality binary that was just built 19 ENTRYPOINT ["/goresponsiveness/networkQuality"] 20 21 # These default parameters test against Apple's public servers 22 # If you change any of these on the `docker run` command, you need to provide them all 23 CMD ["-config","mensura.cdn-apple.com","-port","443","-path","/api/v1/gm/config"] 24