This video will help in understanding, How to build net core WEB API docker images using docker-compose.
docker-compose build
docker-compose up
docker-compose.yml
version: '3.4'
services:
samplewebapi3.0:
image: ${DOCKER_REGISTRY-}samplewebapi30
build:
context: .
dockerfile: SampleWebApi3.0/Dockerfile
ports:
"8084:80"