diff --git a/cmd/erised/Dockerfile b/cmd/erised/Dockerfile index 23f4405..5721072 100644 --- a/cmd/erised/Dockerfile +++ b/cmd/erised/Dockerfile @@ -1,5 +1,8 @@ FROM golang:buster AS build WORKDIR /go/src/app +COPY go.mod . +COPY go.sum . +RUN go mod download COPY . . RUN go build -o /go/bin/erised -ldflags "-s -w" @@ -7,4 +10,5 @@ FROM gcr.io/distroless/base-debian10 COPY --from=build /go/bin/erised / EXPOSE 8080 -CMD ["/erised"] +ENTRYPOINT ["/erised"] +CMD [""]