You are not copying .env into the docker build step. Also please check that any .env entry is not present in your .dockerignore file if any
.env