Merge pull request #91 from tianon/dockerfile-godeps
Update the Dockerfile to use the Godeps versions of libraries and to explicitly use golang:1.4master
						commit
						75c1b2bae7
					
				
							
								
								
									
										20
									
								
								Dockerfile
								
								
								
								
							
							
						
						
									
										20
									
								
								Dockerfile
								
								
								
								
							| 
						 | 
					@ -1,14 +1,16 @@
 | 
				
			||||||
FROM golang
 | 
					FROM golang:1.4
 | 
				
			||||||
 | 
					 | 
				
			||||||
COPY . /go/src/github.com/docker/distribution
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
# Fetch any dependencies to run the registry
 | 
					 | 
				
			||||||
RUN go get github.com/docker/distribution/...
 | 
					 | 
				
			||||||
RUN go install github.com/docker/distribution/cmd/registry
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV CONFIG_PATH /etc/docker/registry/config.yml
 | 
					ENV CONFIG_PATH /etc/docker/registry/config.yml
 | 
				
			||||||
COPY ./cmd/registry/config.yml $CONFIG_PATH
 | 
					RUN mkdir -pv "$(dirname $CONFIG_PATH)"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
 | 
				
			||||||
 | 
					WORKDIR $DISTRIBUTION_DIR
 | 
				
			||||||
 | 
					COPY . $DISTRIBUTION_DIR
 | 
				
			||||||
 | 
					ENV GOPATH $GOPATH:$DISTRIBUTION_DIR/Godeps/_workspace
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN go install -v ./cmd/registry
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					RUN cp -lv ./cmd/registry/config.yml $CONFIG_PATH
 | 
				
			||||||
 | 
					
 | 
				
			||||||
EXPOSE 5000
 | 
					EXPOSE 5000
 | 
				
			||||||
ENV PATH /go/bin
 | 
					 | 
				
			||||||
CMD registry $CONFIG_PATH
 | 
					CMD registry $CONFIG_PATH
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue