2015-01-21 03:04:19 +00:00
|
|
|
FROM golang:1.4
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-06-01 10:15:53 +00:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y librados-dev && \
|
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
2015-01-29 23:37:22 +00:00
|
|
|
ENV GOPATH $DISTRIBUTION_DIR/Godeps/_workspace:$GOPATH
|
2015-06-11 22:30:18 +00:00
|
|
|
ENV DOCKER_BUILDTAGS include_rados
|
2015-01-29 23:37:22 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
|
|
COPY . $DISTRIBUTION_DIR
|
2015-01-29 23:37:22 +00:00
|
|
|
RUN make PREFIX=/go clean binaries
|
2014-12-10 23:57:41 +00:00
|
|
|
|
|
|
|
EXPOSE 5000
|
2015-04-06 14:05:11 +00:00
|
|
|
ENTRYPOINT ["registry"]
|
|
|
|
CMD ["cmd/registry/config.yml"]
|