Skip to content

Instantly share code, notes, and snippets.

@rtitle
Created August 15, 2023 12:33
Show Gist options
  • Save rtitle/c2022672a6f0007b73517717682a08b9 to your computer and use it in GitHub Desktop.
Save rtitle/c2022672a6f0007b73517717682a08b9 to your computer and use it in GitHub Desktop.
bash shell strips dots
➜ cat local.env
VALID_HOSTS.2=bvdp-saturn-dev.appspot.com
VALID_HOSTS.1=*
VALID_HOSTS.0=localhost:3000
# Old base image
➜ docker run --env-file ./local.env -it us.gcr.io/broad-dsp-gcr-public/base/jre@sha256:c56f81d4ca01792b492f4b25d087f99df0adab50708dc53f2d7f022de687ba56 /bin/bash -c 'printenv | grep VALID'
VALID_HOSTS.2=bvdp-saturn-dev.appspot.com
VALID_HOSTS.1=*
VALID_HOSTS.0=localhost:3000
# New base image
➜ docker run --env-file ./local.env -it us.gcr.io/broad-dsp-gcr-public/base/jre:17-debian /bin/bash -c 'printenv | grep VALID'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment