forked from TrueCloudLab/distribution
9b1e893755
go1.8 Plugin package brings a mechanism for dynamyc loading. StorageDriver or AccessController can be compiled as plugin and can be loaded at runtime. Signed-off-by: Anton Tiurin <noxiouz@yandex.ru>
18 lines
458 B
Docker
18 lines
458 B
Docker
FROM golang:1.8-alpine
|
|
|
|
ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution
|
|
ENV DOCKER_BUILDTAGS include_oss include_gcs
|
|
|
|
RUN set -ex \
|
|
&& apk add --no-cache make git build-base
|
|
|
|
WORKDIR $DISTRIBUTION_DIR
|
|
COPY . $DISTRIBUTION_DIR
|
|
COPY cmd/registry/config-dev.yml /etc/docker/registry/config.yml
|
|
|
|
RUN make PREFIX=/go clean binaries
|
|
|
|
VOLUME ["/var/lib/registry"]
|
|
EXPOSE 5000
|
|
ENTRYPOINT ["registry"]
|
|
CMD ["serve", "/etc/docker/registry/config.yml"]
|