mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-12 13:24:12 +00:00
include main.Version in binaries
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -11,6 +11,8 @@ RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
# We also need the Go binary which calls it:
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ARG GOPKGVERSION
|
||||
ENV ldflags="-X main.Version=$GOPKGVERSION"
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
# Hack to work around an issue with go on arm64 requiring gcc
|
||||
RUN [ $(uname -m) = aarch64 ] && apk add --no-cache gcc || true
|
||||
|
Reference in New Issue
Block a user