t3 env doesn't seem to work with docker compose build

I'm working to validate my application before pushing it to my CI/CD pipeline. I keep getting failed docker builds because it can't find my environment variables, I'm using the recommended dockerfile in the t3 documentation to build the container
app:
build:
context: .
env_file:
- .env
ports:
- 3000:3000
app:
build:
context: .
env_file:
- .env
ports:
- 3000:3000
I'm passing in all my env variables via .env file that is on the root directory, I know the compose is reading it because I use the same pattern to run my DB and set up it's username and password with it.
Here is an example of the error
[Error]: Missing `UPLOADTHING_SECRET` env variable.
[Error]: Missing `UPLOADTHING_SECRET` env variable.
Has anyone run into this issue?
J
JustinR17d ago
Been running test all afternoon. It doesn't work in docker build either in gitlab ci/cd