mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-25 11:46:43 +01:00
5d59d6fab8
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
13 lines
534 B
Docker
13 lines
534 B
Docker
FROM golang:1.11.2
|
|
|
|
ENV NOTARYPKG github.com/theupdateframework/notary
|
|
|
|
COPY . /go/src/${NOTARYPKG}
|
|
WORKDIR /go/src/${NOTARYPKG}
|
|
|
|
RUN go install -tags pkcs11 \
|
|
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" ${NOTARYPKG}/cmd/notary-server
|
|
|
|
RUN go install -tags pkcs11 \
|
|
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" ${NOTARYPKG}/cmd/notary-signer
|