1
0
mirror of https://github.com/distribution/distribution synced 2024-11-12 05:45:51 +01:00
distribution/Dockerfile
Brian Bland 454d4e918a Fixes Dockerfile "go get" command
Now pulls down all dependencies for registry sub-packages
2014-12-17 12:04:18 -08:00

15 lines
368 B
Docker

FROM golang
COPY . /go/src/github.com/docker/docker-registry
# Fetch any dependencies to run the registry
RUN go get github.com/docker/docker-registry/...
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
CMD registry $CONFIG_PATH