Fixed docker containers
This commit is contained in:
19
scripts/apply_env.sh
Executable file
19
scripts/apply_env.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
# Enable exporting variables
|
||||
set -a
|
||||
|
||||
# Source the default env variables
|
||||
echo "Sourcing build environment"
|
||||
source .env
|
||||
|
||||
# If there is a .env.local present, source it
|
||||
echo "Sourcing custom environment"
|
||||
if [ -f .env.local ]; then
|
||||
source ./.env.local
|
||||
fi
|
||||
|
||||
# Disable exporting variables
|
||||
set +a
|
||||
|
||||
# Run the given command
|
||||
exec "$@"
|
||||
Reference in New Issue
Block a user