Add more default options for Golang build in Docker

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-06-03 18:16:46 +02:00
parent d8bf14465e
commit 5b2ecfb990
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D

View File

@ -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