feat: Add dockerize to the Dex docker image

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
m.nabokikh 2020-12-22 00:15:55 +04:00
parent 64e47cc22a
commit 7784a4727c

11
entrypoint.sh Executable file
View file

@ -0,0 +1,11 @@
#!/bin/sh -e
### Usage: /entrypoint.sh <command> <args>
command=$1
if [ "$command" == "serve" ]; then
file="$2"
dockerize -template "$file" | dex serve -
else
dex $@
fi