Skip to content

Commit

Permalink
fixed go.mod
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Kramarenko <viktor.kramarenko@flant.com>
  • Loading branch information
ViktorKram committed Feb 14, 2024
1 parent cde3f9a commit c6ef82a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 4 additions & 8 deletions images/sds-lvm-controller/Dockerfile
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"]
2 changes: 0 additions & 2 deletions images/sds-lvm-controller/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ module sds-lvm-controller

go 1.21

toolchain go1.22.0

require (
github.com/go-logr/logr v1.4.1
github.com/prometheus/client_golang v1.18.0
Expand Down

0 comments on commit c6ef82a

Please sign in to comment.