2016-11-23 09:41:48 +00:00
|
|
|
FROM golang:1.7-alpine
|
2016-09-20 14:15:22 +00:00
|
|
|
|
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
|
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
|
|
|
|
|
|
|
RUN set -ex \
|
|
|
|
&& apk add --no-cache make git
|
|
|
|
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
|
|
COPY . $DISTRIBUTION_DIR
|
|
|
|
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
|
|
|
|
|
|
|
RUN make PREFIX=/go clean binaries
|
|
|
|
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
|
|
EXPOSE 5000
|
|
|
|
ENTRYPOINT ["registry"]
|
|
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|