mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 23:18:41 +00:00
include main.Version in binaries
Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
FROM linuxkit/alpine:316c3f9d85c21fdd8bc7479e81d290f85bf60eb0 AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev linux-headers
|
||||
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