diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index 739af9a3e4cf2215404ba4bbb11ec5f3a45e1384..def2baa43e26da97b3a94098d98685525d6de8b9 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -1,6 +1,11 @@
 #!/bin/sh -e
 
 ### Usage: /docker-entrypoint.sh <command> <args>
+### * If command equals to "serve", config file for serving will be preprocessed using gomplate and saved to tmp dir.
+###   Example: docker-entrypoint.sh serve config.yaml = dex serve /tmp/dex-config.yaml-ABCDEFG
+### * If command is not in the list of known dex commands, it will be executed bypassing entrypoint.
+###   Example: docker-entrypoint.sh echo "Hello!" = echo "Hello!"
+
 command=$1
 
 case "$command" in