DEV Community

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

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".