Browse Source

distributable build

master
Tamás Gérczei 2 years ago
parent
commit
af03eaf800
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      Dockerfile

+ 7
- 0
Dockerfile View File

@@ -20,6 +20,13 @@ RUN mkdir -p /etc/docker/registry \
RUN make PREFIX=/go clean binaries \
&& apk del --purge .build-deps

# Build a minimal distribution
FROM alpine:latest
label maintainer="Tamás Gérczei <tamas@gerczei.eu>"

COPY --from=builder /go/bin/registry /bin/registry
COPY --from=builder /go/src/github.com/docker/distribution/cmd/registry/config-example.yml /etc/docker/registry/config.yml

VOLUME ["/var/lib/registry"]
EXPOSE 5000
ENTRYPOINT ["/bin/registry"]


Loading…
Cancel
Save