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 0fc8975 commit 808f592
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/container_apps/Jordnaer.Chat/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ 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 . .
WORKDIR "/src/Jordnaer.Chat"
RUN dotnet build "Jordnaer.Chat.csproj" -c Release -o /app/build
COPY [".", "Jordnaer.Chat/"]
RUN dotnet build "Jordnaer.Chat/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 808f592

Please sign in to comment.