Fix go build >= 1.16
Go build changed in 1.1.6. Modules are no on by default. This did break the build. Adding the environment variable GO111MODULE=auto will fix this. For details see: https://go.dev/blog/go116-module-changes
This commit is contained in:
parent
f52cca3841
commit
1aee0cc409
1 changed files with 1 additions and 0 deletions
|
@ -24,6 +24,7 @@ RUN freshclam --quiet --no-dns
|
|||
|
||||
# Build go package
|
||||
ADD . /go/src/clamav-rest/
|
||||
ENV GO111MODULE=auto
|
||||
RUN go get github.com/dutchcoders/go-clamd
|
||||
RUN go get github.com/prometheus/client_golang/prometheus/promhttp
|
||||
ADD ./server.* /etc/ssl/clamav-rest/
|
||||
|
|
Loading…
Add table
Reference in a new issue