2016-10-31 17:39:09 +00:00
|
|
|
FROM golang:1.7-alpine
|
2015-06-01 10:15:53 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
2016-03-11 00:46:43 +00:00
|
|
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
2015-01-29 23:37:22 +00:00
|
|
|
|
2016-07-21 23:14:32 +00:00
|
|
|
RUN set -ex \
|
|
|
|
&& apk add --no-cache make git
|
|
|
|
|
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
|
2016-04-08 15:55:11 +00:00
|
|
|
|
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"]
|
2016-01-19 22:26:15 +00:00
|
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|