Add more default options for Golang build in Docker
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
d8bf14465e
commit
5b2ecfb990
1 changed files with 4 additions and 1 deletions
|
@ -17,7 +17,10 @@ RUN set -ex \
|
|||
&& apk add --update git \
|
||||
&& go install \
|
||||
-ldflags "-X main.version=$(git describe --tags --always || echo dev)" \
|
||||
-mod=readonly
|
||||
-mod=readonly \
|
||||
-modcacherw \
|
||||
-trimpath
|
||||
|
||||
|
||||
FROM alpine:latest
|
||||
|
||||
|
|
Loading…
Reference in a new issue