Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
NielsPilgaard committed Aug 4, 2023
1 parent 808f592 commit 3944c53
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/container_apps/Jordnaer.Chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ EXPOSE 443
FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build
WORKDIR /src
COPY ["Directory.Build.props", "."]
COPY ["src/container_apps/Jordnaer.Chat/Jordnaer.Chat.csproj", "Jordnaer.Chat/"]
RUN dotnet restore "Jordnaer.Chat/Jordnaer.Chat.csproj"
COPY [".", "Jordnaer.Chat/"]
RUN dotnet build "Jordnaer.Chat/Jordnaer.Chat.csproj" -c Release -o /app/build
COPY ["src/container_apps/Jordnaer.Chat/Jordnaer.Chat.csproj", "src/container_apps/Jordnaer.Chat/"]
RUN dotnet restore "src/container_apps/Jordnaer.Chat/Jordnaer.Chat.csproj"
COPY . .
WORKDIR "/src/src/container_apps/Jordnaer.Chat"
RUN dotnet build "Jordnaer.Chat.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Jordnaer.Chat.csproj" -c Release -o /app/publish /p:UseAppHost=false
Expand Down

0 comments on commit 3944c53

Please sign in to comment.