diff --git a/azure.yaml b/azure.yaml index db4ed45..8cc32a6 100644 --- a/azure.yaml +++ b/azure.yaml @@ -7,7 +7,10 @@ services: web: project: ./src/web language: csharp - host: appservice + host: containerapp + docker: + path: ./Dockerfile + context: ../ pipeline: provider: github hooks: diff --git a/src/web/Dockerfile b/src/web/Dockerfile index d646b0f..46b83a0 100644 --- a/src/web/Dockerfile +++ b/src/web/Dockerfile @@ -1,12 +1,12 @@ #See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER app WORKDIR /app EXPOSE 8080 EXPOSE 8081 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["web/Cosmos.Samples.NoSQL.Quickstart.Web.csproj", "web/"]