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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly