I could not build Docker image.
when I run this command
sudo docker build -t hulk .
It gives output
Step 3/5 : RUN apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git
---> Running in 80f7fdfae834
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz
(1/6) Installing brotli-libs (1.0.9-r3)
(2/6) Installing nghttp2-libs (1.42.0-r1)
(3/6) Installing libcurl (7.74.0-r1)
(4/6) Installing expat (2.2.10-r1)
(5/6) Installing pcre2 (10.36-r0)
(6/6) Installing git (2.30.2-r0)
Executing busybox-1.32.1-r5.trigger
OK: 19 MiB in 21 packages
go: downloading github.com/grafov/hulk v0.0.0-20200102085642-96706999f6b1
go install: version is required when current directory is not in a module
Try 'go install github.com/grafov/hulk@latest' to install the latest version
The command '/bin/sh -c apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git' returned a non-zero code: 1
I could not build Docker image. when I run this command sudo docker build -t hulk .
It gives output
Step 3/5 : RUN apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git ---> Running in 80f7fdfae834 fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/main/x86_64/APKINDEX.tar.gz fetch https://dl-cdn.alpinelinux.org/alpine/v3.13/community/x86_64/APKINDEX.tar.gz (1/6) Installing brotli-libs (1.0.9-r3) (2/6) Installing nghttp2-libs (1.42.0-r1) (3/6) Installing libcurl (7.74.0-r1) (4/6) Installing expat (2.2.10-r1) (5/6) Installing pcre2 (10.36-r0) (6/6) Installing git (2.30.2-r0) Executing busybox-1.32.1-r5.trigger OK: 19 MiB in 21 packages go: downloading github.com/grafov/hulk v0.0.0-20200102085642-96706999f6b1 go install: version is required when current directory is not in a module Try 'go install github.com/grafov/hulk@latest' to install the latest version The command '/bin/sh -c apk add --no-cache git && go get -d -v github.com/grafov/hulk && go install github.com/grafov/hulk && rm -rf ~/go/src/github.com/grafov/hulk && apk del git' returned a non-zero code: 1