Skip to content

Commit

Permalink
fix(docker): use fqdn path for entrypoint (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
FalcoSuessgott authored Mar 17, 2024
1 parent 3ce8755 commit 7e96398
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ WORKDIR /usr/src/vault-kubernetes-kms
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
RUN go build -v -o /usr/local/bin/vault-kubernetes-kms cmd/main.go
RUN go build -v -o /vault-kubernetes-kms cmd/main.go

# https://github.com/GoogleContainerTools/distroless/issues/1360#issuecomment-1646667145
FROM gcr.io/distroless/static-debian12@sha256:4a2c1a51ae5e10ec4758a0f981be3ce5d6ac55445828463fce8dff3a355e0b75
WORKDIR /
COPY --from=builder /usr/local/bin/vault-kubernetes-kms .
COPY --from=builder /vault-kubernetes-kms .

ENTRYPOINT ["vault-kubernetes-kms"]
ENTRYPOINT ["/vault-kubernetes-kms"]
2 changes: 1 addition & 1 deletion Dockerfile.goreleaser
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM gcr.io/distroless/static-debian12@sha256:4a2c1a51ae5e10ec4758a0f981be3ce5d6
WORKDIR /
COPY vault-kubernetes-kms .

ENTRYPOINT ["vault-kubernetes-kms"]
ENTRYPOINT ["/vault-kubernetes-kms"]

0 comments on commit 7e96398

Please sign in to comment.