Skip to content

Commit

Permalink
Update Azure.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
seesharprun committed Oct 22, 2024
1 parent f966474 commit 364c3c3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ services:
web:
project: ./src/web
language: csharp
host: appservice
host: containerapp
docker:
path: ./Dockerfile
context: ../
pipeline:
provider: github
hooks:
Expand Down
4 changes: 2 additions & 2 deletions src/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"]
Expand Down

0 comments on commit 364c3c3

Please sign in to comment.