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