Reading env variables with custom app
Solved
Support
-
I am trying to install a custom app written in Phoenix Elixir.
My dockerfile ends with that:
ADD start.sh /app/start.sh RUN chmod +x /app/start.sh CMD [ "/app/start.sh" ]
Earlier, I set my environment variables like that:
ENV SECRET_KEY_BASE=default
Here is my startup script:
#!/bin/bash set -eu # Load environment variables source ./env.list # Start PROGRAM exec ./_build/prod/rel/PROGRAM/bin/PROGRAM start
But the environment variables don't seem to be read properly, so the app doesn't start in Cloudron. What am I doing wrong?
-
-