Skip to content

Commit

Permalink
build: pass the version as build-arg.
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Mar 9, 2022
1 parent 3d9d636 commit 116b6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM golang:alpine
ARG VERSION
ENV CGO_ENABLED=0
WORKDIR $GOPATH/src/github.com/flatcar-linux/container-linux-config-transpiler
COPY . .
RUN apk update && apk add --virtual .build-deps bash git make \
&& make \
&& make VERSION=${VERSION} \
&& mv bin/ct /usr/bin/ \
&& rm -rf $GOPATH \
&& apk del .build-deps && rm -rf /var/cache/apk
Expand Down

0 comments on commit 116b6e1

Please sign in to comment.