cat <<EOF > Dockerfile && docker build -t registry .
FROM --platform=x86_64 cgr.dev/chainguard/go:latest-glibc as build
RUN CGO_ENABLED=0 GOBIN=/home/nonroot go install github.com/google/go-containerregistry/cmd/registry@latest
FROM --platform=x86_64 cgr.dev/chainguard/static:latest
COPY --from=build /home/nonroot/registry /registry
ENTRYPOINT ["/registry", "-port", "5000"]
EXPOSE 5000
EOF
usrbinkat@wasmx:~$ docker images registry
REPOSITORY TAG IMAGE ID CREATED SIZE
registry latest df4c8a6ad85b 6 minutes ago 8.44MB
docker run -d -p 5000:5000 --name registry registry
🎉🥳
LICENSE?