2015-01-21 03:04:19 +00:00
|
|
|
FROM golang:1.4
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
ENV CONFIG_PATH /etc/docker/registry/config.yml
|
|
|
|
RUN mkdir -pv "$(dirname $CONFIG_PATH)"
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
|
|
COPY . $DISTRIBUTION_DIR
|
|
|
|
ENV GOPATH $GOPATH:$DISTRIBUTION_DIR/Godeps/_workspace
|
2014-12-10 23:57:41 +00:00
|
|
|
|
2015-01-21 03:04:19 +00:00
|
|
|
RUN go install -v ./cmd/registry
|
|
|
|
|
|
|
|
RUN cp -lv ./cmd/registry/config.yml $CONFIG_PATH
|
2014-12-10 23:57:41 +00:00
|
|
|
|
|
|
|
EXPOSE 5000
|
2014-12-17 20:04:18 +00:00
|
|
|
CMD registry $CONFIG_PATH
|