mirror of
https://github.com/distribution/distribution
synced 2024-11-12 05:45:51 +01:00
037a8a11e8
This speeds up the build (and makes it more consistent) since it doesn't have to clone a bunch of repos. 👍
Signed-off-by: Andrew "Tianon" Page <admwiggin@gmail.com>
17 lines
396 B
Docker
17 lines
396 B
Docker
FROM golang:1.4
|
|
|
|
ENV CONFIG_PATH /etc/docker/registry/config.yml
|
|
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
|
|
CMD registry $CONFIG_PATH
|