From 7784a4727c2aaba712d8be5e0b1ee89635301b7a Mon Sep 17 00:00:00 2001 From: "m.nabokikh" Date: Tue, 22 Dec 2020 00:15:55 +0400 Subject: [PATCH] feat: Add dockerize to the Dex docker image Signed-off-by: m.nabokikh --- entrypoint.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100755 index 00000000..65e074a8 --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,11 @@ +#!/bin/sh -e + +### Usage: /entrypoint.sh +command=$1 + +if [ "$command" == "serve" ]; then + file="$2" + dockerize -template "$file" | dex serve - +else + dex $@ +fi