You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have any tasks inside your Dockerfile that require environment variables specified in the docker-compose file, they will not be found. An easy solution would be to have environment variables passed in as arguments to the docker build command, i.e.
docker build doesn't support a -e flag, or any means of passing environment variables in to the build. This functionality would have to be supported by the Docker engine first.
It's been discussed a lot - for example, here's a recent proposal: moby/moby#15182
If you have any tasks inside your Dockerfile that require environment variables specified in the docker-compose file, they will not be found. An easy solution would be to have environment variables passed in as arguments to the docker build command, i.e.
docker-compose.yml
As executed by
docker-compose
:docker build . -eRACK_ENV=development -eSESSION_SECRET=12345
The text was updated successfully, but these errors were encountered: