docker build -t myapp:1.0 -f Dockerfile.prod .

Category: Docker

docker build -t myapp:1.0 -f Dockerfile.prod .

Build using a specific Dockerfile

Builds using a specific Dockerfile instead of the default 'Dockerfile'. -f specifies the filename.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.