2016-03-18 22:07:13 +01:00
|
|
|
FROM golang:1.6
|
2014-12-11 00:57:41 +01:00
|
|
|
|
2015-06-01 12:15:53 +02:00
|
|
|
RUN apt-get update && \
|
2016-03-11 01:46:43 +01:00
|
|
|
apt-get install -y apache2-utils && \
|
2015-06-01 12:15:53 +02:00
|
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2015-01-21 04:04:19 +01:00
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
2016-03-11 01:46:43 +01:00
|
|
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
2015-01-30 00:37:22 +01:00
|
|
|
|
2015-01-21 04:04:19 +01:00
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
|
|
COPY . $DISTRIBUTION_DIR
|
2015-08-10 23:30:29 +02:00
|
|
|
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
2015-01-30 00:37:22 +01:00
|
|
|
RUN make PREFIX=/go clean binaries
|
2014-12-11 00:57:41 +01:00
|
|
|
|
2015-06-11 06:24:16 +02:00
|
|
|
VOLUME ["/var/lib/registry"]
|
2014-12-11 00:57:41 +01:00
|
|
|
EXPOSE 5000
|
2015-04-06 16:05:11 +02:00
|
|
|
ENTRYPOINT ["registry"]
|
2016-01-19 23:26:15 +01:00
|
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|