-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9062120
commit ec1d5c3
Showing
4 changed files
with
39 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,20 @@ | ||
FROM golang:1.19-alpine3.18 as build | ||
|
||
FROM golang:1.21-alpine3.20 AS build | ||
WORKDIR /venona | ||
|
||
COPY go.mod . | ||
RUN go mod download | ||
|
||
RUN apk add git | ||
|
||
COPY . . | ||
|
||
ARG COMMIT | ||
|
||
RUN VERSION=$(cat VERSION) \ | ||
DATE=$(date -u "+%Y-%m-%dT%TZ") && \ | ||
env CGO_ENABLED=0 \ | ||
go build -ldflags="-w -X github.com/codefresh-io/venona/venonactl/cmd.version=${VERSION} \ | ||
-X github.com/codefresh-io/venona/venonactl/cmd.commit=${COMMIT} -X github.com/codefresh-io/venona/venonactl/cmd.date=${DATE}" \ | ||
-o venona | ||
|
||
FROM alpine:3.17 | ||
|
||
FROM alpine:3.20 | ||
RUN apk add --update ca-certificates | ||
|
||
COPY --from=build /venona/venona /usr/local/bin/venona | ||
|
||
ENTRYPOINT [ "venona" ] | ||
|
||
CMD [ "--help" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.