2018-10-17 10:04:14 +02:00
|
|
|
FROM golang:1.9.4
|
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
|