mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-30 22:24:14 +01:00
0aac7832eb
remove the binary temp folder, just keep on binary path.
14 lines
561 B
Docker
14 lines
561 B
Docker
FROM golang:1.7.3
|
|
|
|
ENV NOTARY_DIR /go/src/github.com/docker/notary
|
|
ENV NOTARYPKG github.com/docker/notary
|
|
|
|
COPY . /go/src/${NOTARYPKG}
|
|
WORKDIR /go/src/${NOTARYPKG}
|
|
|
|
RUN go build -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 build -tags pkcs11 \
|
|
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit=`git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion=`cat NOTARY_VERSION`" $NOTARYPKG/cmd/notary-signer
|