Skip to content

Commit

Permalink
update dotnet-tools to build image
Browse files Browse the repository at this point in the history
Signed-off-by: Takuya Iwatsuka <takuya.iwatsuka@gmail.com>
  • Loading branch information
tiwatsuka committed Oct 27, 2023
1 parent 9bc0686 commit 234ec10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/CarbonAware.WebApi/src/.config/dotnet-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"isRoot": true,
"tools": {
"swashbuckle.aspnetcore.cli": {
"version": "6.2.3",
"version": "6.5.0",
"commands": [
"swagger"
]
}
}
}
}
4 changes: 2 additions & 2 deletions src/CarbonAware.WebApi/src/CarbonAware.WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.0.0-rc9.9" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.0.0-rc9.9" />
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.0.0-rc9.9" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.2.3" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.20.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="6.4.0" />
</ItemGroup>
Expand All @@ -45,4 +45,4 @@
<ItemGroup>
<Folder Include="api\v1" />
</ItemGroup>
</Project>
</Project>
1 change: 1 addition & 0 deletions src/CarbonAware.WebApi/src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
WORKDIR /app

ENV DOTNET_ROLL_FORWARD LatestMajor
# Copy everything from source
COPY . ./
# Use implicit restore to build and publish
Expand Down

0 comments on commit 234ec10

Please sign in to comment.