improve docker handling
This commit is contained in:
17
docker-entrypoint.sh
Executable file
17
docker-entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# cspell:words mkdir
|
||||
# cspell:enableCompoundWords
|
||||
###########################################################
|
||||
|
||||
# use environment variables
|
||||
if [ "$BASE_URL" != "ROOT" ]; then
|
||||
mkdir -p "$(dirname "$WEBAPP_PATH/$BASE_URL")"
|
||||
mv "$WEBAPP_PATH/ROOT.war" "$WEBAPP_PATH/$BASE_URL.war"
|
||||
fi
|
||||
|
||||
# base image entrypoint
|
||||
if [ -x /docker-entrypoint.sh ]; then
|
||||
/docker-entrypoint.sh "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user