distribution-library-image/docker-entrypoint.sh

19 lines
206 B
Bash
Executable File

#!/bin/sh
set -e
if [ -f $1 ]; then
set -- /bin/registry serve "$@"
exec "$@"
fi
if [ "$1" = "sh" ]; then
shift
set -- /bin/sh "$@"
exec "$@"
fi
set -- /bin/registry "$@"
exec "$@"