In context of folder containing a file called Dockerfile
docker build .
Specify filename
docker build -f MyDockerfile .
Build with custom tag
docker build -f MyDockerfile -t my-service-image .
docker-compose up --build -d
 rebuilds the docker containers specified in the docker-compose.yml file and starts it as a daemon