From 87c10960d23e3fdfef7c9324d70b600b11203a96 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Wed, 10 Dec 2014 15:57:41 -0800 Subject: [PATCH] Initial Dockerfile for running registry --- Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..6297b38db --- /dev/null +++ b/Dockerfile @@ -0,0 +1,14 @@ +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 \ No newline at end of file