2014-12-10 23:57:41 +00:00
|
|
|
FROM golang
|
|
|
|
|
2014-12-24 00:01:38 +00:00
|
|
|
COPY . /go/src/github.com/docker/distribution
|
2014-12-10 23:57:41 +00:00
|
|
|
|
|
|
|
# Fetch any dependencies to run the registry
|
2014-12-24 00:01:38 +00:00
|
|
|
RUN go get github.com/docker/distribution/...
|
|
|
|
RUN go install github.com/docker/distribution/cmd/registry
|
2014-12-10 23:57:41 +00:00
|
|
|
|
|
|
|
ENV CONFIG_PATH /etc/docker/registry/config.yml
|
|
|
|
COPY ./cmd/registry/config.yml $CONFIG_PATH
|
|
|
|
|
|
|
|
EXPOSE 5000
|
|
|
|
ENV PATH /go/bin
|
2014-12-17 20:04:18 +00:00
|
|
|
CMD registry $CONFIG_PATH
|