3. CI/Deployment with Docker Flashcards
1
Q
How do you set an environment variable for a given service using the Dockerfile?
A
By using the ENV
keyword and specifying a key-value pair separated with space.
eg. ENV PATH /usr/src/app/node/.bin:$PATH