create Azure container registry (on portal.azure.com), go to access keys, enable admin. Authentication keys will be generated
login to Azure container registry using the generated keys:
docker login [myregistry].azurecr.io --username [username] --password [password]
create image:
docker build . -t [image_name]
create alias with full path to registry (format: path/name:tag):
docker tag [image_name] [myregistry].azurecr.io/[name]:[tag]
push image to Azure container registry:
docker push [myregistry].azurecr.io/[name]:[tag]
create azure app service and specify container source as azure container registry or private registry (using generated auth keys)
specify startup command. Should look like:
docker run -p 80:80 [myregistry].azurecr.io/[name]:[tag]