mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 12:34:21 -05:00
🗃️ modified: bin/entrypoint-deno.sh 🗃️
This commit is contained in:
parent
f532040cdf
commit
e235d69647
@ -47,15 +47,7 @@ if [[ -n "${HOSTNAME}" ]]; then
|
||||
echo "127.0.0.1 $HOSTNAME localhost" >/etc/hosts
|
||||
fi
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
if [[ -n "$CONFIG_DIR" ]] && [[ -d "$CONFIG_DIR" ]]; then
|
||||
for config in $CONFIG_DIR; do
|
||||
if [[ -d "/config/$config" ]]; then
|
||||
cp -Rf "/config/$config/." "/etc/$config/"
|
||||
elif [[ -f "/config/$config" ]]; then
|
||||
cp -Rf "/config/$config" "/etc/$config"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
[[ -f "/app/.env" ]] && source /app/.env
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
case "$1" in
|
||||
--help)
|
||||
@ -70,7 +62,7 @@ bash | shell | sh)
|
||||
__exec_bash "$@"
|
||||
;;
|
||||
*)
|
||||
__exec_bash "$@"
|
||||
exec deno run --allow-net "${@:-https://deno.land/std/examples/welcome.ts}"
|
||||
;;
|
||||
esac
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
|
Loading…
x
Reference in New Issue
Block a user