Update Dockerfile to use Makefile to build binary
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
d0abfe0b92
commit
8f70e298bf
10
Dockerfile
10
Dockerfile
@ -1,15 +1,13 @@
|
||||
FROM golang:1.4
|
||||
|
||||
ENV CONFIG_PATH /etc/docker/registry/config.yml
|
||||
RUN mkdir -pv "$(dirname $CONFIG_PATH)"
|
||||
|
||||
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
||||
ENV GOPATH $DISTRIBUTION_DIR/Godeps/_workspace:$GOPATH
|
||||
|
||||
WORKDIR $DISTRIBUTION_DIR
|
||||
COPY . $DISTRIBUTION_DIR
|
||||
ENV GOPATH $GOPATH:$DISTRIBUTION_DIR/Godeps/_workspace
|
||||
|
||||
RUN go install -v ./cmd/registry
|
||||
|
||||
RUN make PREFIX=/go clean binaries
|
||||
RUN mkdir -pv "$(dirname $CONFIG_PATH)"
|
||||
RUN cp -lv ./cmd/registry/config.yml $CONFIG_PATH
|
||||
|
||||
EXPOSE 5000
|
||||
|
Loading…
Reference in New Issue
Block a user