diff options
| author | Will Hawkins <[email protected]> | 2022-03-17 17:19:09 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-03-17 17:19:09 -0400 |
| commit | d5dfc589d93715e07959a96eac6c469fdb405d7e (patch) | |
| tree | 1e20f8d884b724715b1ac477dd04c82445135d79 /Dockerfile | |
| parent | 0a005d29c22ea9ea00b9c65c0cdfc6a9d5673646 (diff) | |
| parent | 07e8d26d30aff5f0b0642016c684685efe89658a (diff) | |
Merge pull request #7 from richb-hanover/main
Add Dockerfile, minor tweaks to format of displayed stats
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e96afa8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Dockerfile to clone the goresponsiveness repository +# build the binary +# make it ready to run + +# Build with: docker build -t goresp . + +# Run with: docker run goresp + +FROM golang:1.17.8-alpine3.15 + +RUN mkdir /goresponsiveness +ADD . /goresponsiveness +WORKDIR /goresponsiveness + +RUN go mod download +RUN go build -o networkQuality networkQuality.go + +# `docker run` invokes the networkQuality binary that was just built +ENTRYPOINT ["/goresponsiveness/networkQuality"] + +# These default parameters test against Apple's public servers +# If you change any of these on the `docker run` command, you need to provide them all +CMD ["-config","mensura.cdn-apple.com","-port","443","-path","/api/v1/gm/config"] + |
