docker build -t myapp:latest .

Category: Docker

docker build -t myapp:latest .

Build an image from Dockerfile in current directory

Builds a Docker image from the Dockerfile in the current directory (.). -t assigns a name and version tag.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.