mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-05 00:42:54 +00:00
include main.Version in binaries
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -19,6 +19,9 @@ FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS build
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
ARG GOPKGVERSION
|
||||
ENV ldflags="-X main.Version=$GOPKGVERSION"
|
||||
|
||||
# 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