2018-11-26 06:27:57 +01:00
|
|
|
FROM golang:1.11.2
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2017-12-09 19:53:12 +01:00
|
|
|
ENV NOTARYPKG github.com/theupdateframework/notary
|
2017-09-26 11:14:13 +02:00
|
|
|
|
|
|
|
COPY . /go/src/${NOTARYPKG}
|
|
|
|
WORKDIR /go/src/${NOTARYPKG}
|
|
|
|
|
2017-12-09 19:53:12 +01:00
|
|
|
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
|
2017-09-26 11:14:13 +02:00
|
|
|
|
2017-12-09 19:53:12 +01:00
|
|
|
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
|