-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
- Loading branch information
1 parent
cde3f9a
commit c6ef82a
Showing
2 changed files
with
4 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,17 @@ | ||
ARG BASE_GOLANG_20_ALPINE=registry.deckhouse.io/base_images/golang:1.20.4-alpine3.18@sha256:5f403dd08db2f0b40d4416e29d3080eec41cd6cf53a05d5e4bcece3a5c7a8ce6 | ||
ARG BASE_GOLANG_20_ALPINE_BUILDER=$BASE_GOLANG_20_ALPINE | ||
ARG BASE_ALPINE=registry.deckhouse.io/base_images/alpine:3.16.3@sha256:5548e9172c24a1b0ca9afdd2bf534e265c94b12b36b3e0c0302f5853eaf00abb | ||
ARG BASE_GOLANG_20_ALPINE_BUILDER=registry.deckhouse.io/base_images/golang:1.20.5-alpine3.18@sha256:51a47fb0851397db2f506c15c426735bc23de31177cbdd962880c0879d1906a4 | ||
|
||
FROM $BASE_GOLANG_20_ALPINE_BUILDER as builder | ||
|
||
WORKDIR /go/src | ||
|
||
ADD go.mod . | ||
ADD go.sum . | ||
|
||
RUN go mod download | ||
|
||
COPY . . | ||
|
||
WORKDIR /go/src/cmd | ||
RUN GOOS=linux GOARCH=amd64 go build -o sds-lvm-controller | ||
|
||
FROM --platform=linux/amd64 $BASE_GOLANG_20_ALPINE | ||
FROM --platform=linux/amd64 $BASE_ALPINE | ||
COPY --from=builder /go/src/cmd/sds-lvm-controller /go/src/cmd/sds-lvm-controller | ||
|
||
ENTRYPOINT ["/go/src/cmd/sds-lvm-controller"] | ||
ENTRYPOINT ["/go/src/cmd/sds-lvm-controller"] |
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