Skip to content

Commit

Permalink
Set environment variables from files in Docker (#717)
Browse files Browse the repository at this point in the history
Signed-off-by: Slava <[email protected]>
  • Loading branch information
veaceslavdoina authored Feb 21, 2024
1 parent 9e13d22 commit c99085c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docker/docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/bin/bash

# Environment variables from files
if [[ -n "${ENV_PATH}" ]]; then
[[ -f ${ENV_PATH} ]] && source ${ENV_PATH} || for f in ${ENV_PATH}/*; do source $f; done
fi

# Parameters
if [[ -z "${CODEX_NAT}" ]]; then
if [[ "${NAT_IP_AUTO}" == "true" && -z "${NAT_PUBLIC_IP_AUTO}" ]]; then
Expand Down

0 comments on commit c99085c

Please sign in to comment.