forked from TrueCloudLab/distribution
Initial Dockerfile for running registry
This commit is contained in:
parent
7b56d10076
commit
87c10960d2
1 changed files with 14 additions and 0 deletions
14
Dockerfile
Normal file
14
Dockerfile
Normal file
|
@ -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
|
Loading…
Reference in a new issue