2016-01-14 18:37:44 +00:00
|
|
|
FROM golang:1.5.3
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-06-01 10:15:53 +00:00
|
|
|
RUN apt-get update && \
|
2015-06-12 05:11:26 +00:00
|
|
|
apt-get install -y librados-dev apache2-utils && \
|
2015-06-01 10:15:53 +00:00
|
|
|
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-07-20 17:45:15 +00:00
|
|
|
ENV DOCKER_BUILDTAGS include_rados include_oss include_gcs
|
2015-01-29 23:37:22 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
|
|
COPY . $DISTRIBUTION_DIR
|
2015-08-10 21:30:29 +00:00
|
|
|
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
2015-01-29 23:37:22 +00:00
|
|
|
RUN make PREFIX=/go clean binaries
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-06-11 04:24:16 +00:00
|
|
|
VOLUME ["/var/lib/registry"]
|
2014-12-10 23:57:41 +00:00
|
|
|
EXPOSE 5000
|
2015-04-06 14:05:11 +00:00
|
|
|
ENTRYPOINT ["registry"]
|
2015-08-10 21:30:29 +00:00
|
|
|
CMD ["/etc/docker/registry/config.yml"]
|