distributable build
This commit is contained in:
parent
609b3f6454
commit
af03eaf800
|
@ -20,6 +20,13 @@ RUN mkdir -p /etc/docker/registry \
|
||||||
RUN make PREFIX=/go clean binaries \
|
RUN make PREFIX=/go clean binaries \
|
||||||
&& apk del --purge .build-deps
|
&& 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"]
|
VOLUME ["/var/lib/registry"]
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
ENTRYPOINT ["/bin/registry"]
|
ENTRYPOINT ["/bin/registry"]
|
||||||
|
|
Loading…
Reference in New Issue