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