Files
docker-docs/notary-server-Dockerfile
Ying Li 37d7ee84ea Add -debug to the notary-server Dockerfile so that the debug server
starts up and we can check 8080.

Signed-off-by: Ying Li <ying.li@docker.com>
2015-10-14 14:50:43 -07:00

23 lines
608 B
Plaintext

FROM golang
RUN apt-get update && apt-get install -y \
libltdl-dev \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
EXPOSE 4443
ENV NOTARYPKG github.com/docker/notary
ENV GOPATH /go/src/${NOTARYPKG}/Godeps/_workspace:$GOPATH
COPY . /go/src/github.com/docker/notary
WORKDIR /go/src/${NOTARYPKG}
RUN go install \
-ldflags "-w -X ${NOTARYPKG}/version.GitCommit `git rev-parse --short HEAD` -X ${NOTARYPKG}/version.NotaryVersion `cat NOTARY_VERSION`" \
${NOTARYPKG}/cmd/notary-server
ENTRYPOINT [ "notary-server" ]
CMD [ "-config", "cmd/notary-server/config.json", "-debug"]