2014-12-10 23:57:41 +00:00
|
|
|
FROM golang
|
|
|
|
|
|
|
|
COPY . /go/src/github.com/docker/docker-registry
|
|
|
|
|
|
|
|
# Fetch any dependencies to run the registry
|
2014-12-17 20:04:18 +00:00
|
|
|
RUN go get github.com/docker/docker-registry/...
|
2014-12-10 23:57:41 +00:00
|
|
|
RUN go install github.com/docker/docker-registry/cmd/registry
|
|
|
|
|
|
|
|
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
|