user5558501
user5558501

Reputation:

Multiple dockerfiles in one docker or multiple images from one dockerfile

I saw this question about multiple dockerfiles in project:

docker build -f Dockerfile.db .
docker build -f Dockerfile.web .

What does this mean? Is it one dockerfile with different "tags" in it? (if yes, is it possible to show a short example?) Or there is two dockerfiles in the repository with the names Dockerfile.db and Dockerfile.web?

Upvotes: 3

Views: 5002

Answers (1)

Benjamin Schüller
Benjamin Schüller

Reputation: 2189

These are two different dockerfiles. One for the database. And the other with the webserver.

Upvotes: 2

Related Questions