Skip to content

Commit

Permalink
Add signatory-cli util, put binaries in /bin
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonearth committed Jun 19, 2020
1 parent b17aa42 commit 72fc3c1
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmd/signatory/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ WORKDIR /build/signatory
RUN apk update && apk add git openssh bash
ADD . .
RUN go build -ldflags "-X ${COLLECTOR_PKG}.GitRevision=${GIT_REVISION} -X ${COLLECTOR_PKG}.GitBranch=${GIT_BRANCH} -X ${COLLECTOR_PKG}.GitVersion=${GIT_VERSION}" ./cmd/signatory
RUN go build -ldflags "-X ${COLLECTOR_PKG}.GitRevision=${GIT_REVISION} -X ${COLLECTOR_PKG}.GitBranch=${GIT_BRANCH} -X ${COLLECTOR_PKG}.GitVersion=${GIT_VERSION}" ./cmd/signatory-cli


# final stage
FROM alpine
FROM alpine:3
RUN apk --no-cache add ca-certificates
WORKDIR /app
COPY --from=build-env /build/signatory/signatory /app/
ENTRYPOINT /app/signatory
COPY --from=build-env /build/signatory/signatory /bin
COPY --from=build-env /build/signatory/signatory-cli /bin

ENTRYPOINT ["/app/signatory"]

0 comments on commit 72fc3c1

Please sign in to comment.