Error node: .env: not found
when start my node docker app
#3912
Unanswered
Ridermansb
asked this question in
Q&A
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
adapter env requires that I have
.env
file on my nodejs application?I have a Node app that I'm deploying to Cloud Run using a Dockerfile.
And on my api I use
const environmentVariables = env(c);
(from env adapter).The problem is that when I try to run my Docker container, I receive the following error:
This occurs because I have already configured the environment variables in my Docker container. Therefore, I don't need the .env file; I only require it for my local development.
Question:
process.env
it's the same?Beta Was this translation helpful? Give feedback.
All reactions