Hope this is a proper sub for asking this.

disclaimer : Consider me a programming novice, with HTML and limited PHP/CSS experience.

Ive been messing with docker compose, and i’m loving it. Ive also written a small script that i want to dockerize, but i want to use the environment list. What is a proper code for getting the ENV data in your script?

Ive been duckduckgo-ing (doesnt sound like the old days, does it) and i cant figure it out.

  • @[email protected]
    link
    fedilink
    English
    31 year ago

    In my opinion you would want to create a Dockerfile to generate a Docker Image with your script and the ENVs in it. Remember though this script will run inside the docker container and the host will not see any modification. Could you explain in more details what this script would do?

    • That Dutch guyOP
      link
      fedilink
      English
      21 year ago

      right now its a javascript countdown till christmas.

      Id like to pass the target year through a variable though.

      • @DontAskAboutUpdog
        link
        English
        21 year ago

        Not trying to be an AH but that is not suitable for an ENV. Instead pass the year through the URL