2014-12-11 00:57:41 +01:00
|
|
|
FROM golang
|
|
|
|
|
2014-12-24 01:01:38 +01:00
|
|
|
COPY . /go/src/github.com/docker/distribution
|
2014-12-11 00:57:41 +01:00
|
|
|
|
|
|
|
# Fetch any dependencies to run the registry
|
2014-12-24 01:01:38 +01:00
|
|
|
RUN go get github.com/docker/distribution/...
|
|
|
|
RUN go install github.com/docker/distribution/cmd/registry
|
2014-12-11 00:57:41 +01: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 21:04:18 +01:00
|
|
|
CMD registry $CONFIG_PATH
|