How to build net core WEB API docker image using docker compose

Опубликовано: 03 Март 2026
на канале: Rakiative
3,218
23

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"