From 609b3f64544215b4ef4c489bd857a2becc9c70fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20G=C3=A9rczei?= Date: Fri, 20 Apr 2018 07:07:17 +0000 Subject: [PATCH] initial commit: working prototype --- Dockerfile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c597e23 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,26 @@ +# Compile binaries +FROM arm32v6/golang:alpine as builder + +ENV DISTRIBUTION_DIR /go/src/github.com/docker/distribution +ENV DOCKER_BUILDTAGS include_oss include_gcs + +ARG VERSION=master + +RUN set -ex \ + && apk add --no-cache --virtual .build-deps \ + make \ + git \ + && git clone -b $VERSION https://github.com/docker/distribution.git $DISTRIBUTION_DIR + +WORKDIR $DISTRIBUTION_DIR + +RUN mkdir -p /etc/docker/registry \ + && cp cmd/registry/config-dev.yml /etc/docker/registry/config.yml + +RUN make PREFIX=/go clean binaries \ + && apk del --purge .build-deps + +VOLUME ["/var/lib/registry"] +EXPOSE 5000 +ENTRYPOINT ["/bin/registry"] +CMD ["serve", "/etc/docker/registry/config.yml"]