DEV Community

Discussion on: Add docker to your NodeJS workflow in just 4 simple steps

Collapse
 
didaquis profile image
Dídac García

hummm... what about environment variables? Can you tell me some tips about handle environment vars?

Collapse
 
kristianroopnarine profile image
Kristian-Roopnarine
Collapse
 
kristianroopnarine profile image
Kristian-Roopnarine

Yup I can do that! You can save environment variables directly into a Dockerfile using the "ENV" key OR create a .env file in your root directory and access environment variables it in your application with "process.env.ENV_VARIABLE".