LookingGlass/Dockerfile
Renovate 36caf7eb8a
chore(deps): update dotnet monorepo (#18)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [Microsoft.AspNetCore.OpenApi](https://asp.net/) ([source](https://github.com/dotnet/aspnetcore)) | nuget | patch | `9.0.1` -> `9.0.2` |
| [Microsoft.EntityFrameworkCore](https://docs.microsoft.com/ef/core/) ([source](https://github.com/dotnet/efcore)) | nuget | patch | `9.0.1` -> `9.0.2` |
| [mcr.microsoft.com/dotnet/aspnet](https://github.com/dotnet/aspnetcore) | stage | digest | `f77d967` -> `adc89f8` |
| [mcr.microsoft.com/dotnet/sdk](https://github.com/dotnet/sdk) | final | digest | `6894a71` -> `7f8e8b1` |

---

### Release Notes

<details>
<summary>dotnet/aspnetcore (Microsoft.AspNetCore.OpenApi)</summary>

### [`v9.0.2`](https://github.com/dotnet/aspnetcore/releases/tag/v9.0.2): .NET 9.0.2

[Release](https://github.com/dotnet/core/releases/tag/v9.0.2)

#### What's Changed

-   Update branding to 9.0.2 by [@&#8203;vseanreesermsft](https://github.com/vseanreesermsft) in https://github.com/dotnet/aspnetcore/pull/59757
-   \[release/9.0] Update dependencies from dotnet/source-build-externals by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59267
-   \[release/9.0] Update dependencies from dotnet/extensions by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59266
-   \[release/9.0] Update OSX helix queue by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59743
-   \[release/9.0] Update dependencies from dotnet/arcade by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59728
-   \[release/9.0] (deps): Bump src/submodules/googletest from `d144031` to `7d76a23` by [@&#8203;dependabot](https://github.com/dependabot) in https://github.com/dotnet/aspnetcore/pull/59679
-   \[release/9.0] Skip tests on internal queues too by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59578
-   \[release/9.0] Fix loading dotnet user-jwts config by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59473
-   \[release/9.0] Fix MultipartReaderStream synchronous read when using buffer offset by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59422
-   \[release/9.0] Update dependencies from dotnet/xdt by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59419
-   \[release/9.0] Update dependencies from dotnet/extensions by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59611
-   \[release/9.0] Fix Kestrel host header mismatch handling when port in Url by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59362
-   Migrate off of Fedora 38 by [@&#8203;v-firzha](https://github.com/v-firzha) in https://github.com/dotnet/aspnetcore/pull/59613
-   \[release/9.0] \[Blazor WASM standalone] Avoid caching `index.html` during development by [@&#8203;MackinnonBuck](https://github.com/MackinnonBuck) in https://github.com/dotnet/aspnetcore/pull/59348
-   \[release/9.0] Update to Fedora 41 by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59816
-   \[release/9.0] Don't throw exception for parameters with custom binding source by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59533
-   \[release/9.0] Apply schema transformer to AdditionalProperties by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59730
-   \[release/9.0] Harden schema reference transformer for relative references by [@&#8203;captainsafia](https://github.com/captainsafia) in https://github.com/dotnet/aspnetcore/pull/59779
-   \[release/9.0] Update dependencies from dotnet/extensions by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59847
-   \[release/9.0] Update dependencies from dotnet/arcade by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/aspnetcore/pull/59848
-   \[release/9.0] Return 206 Partial Content on Valid Range for Static Assets by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/aspnetcore/pull/59325
-   Merging internal commits for release/9.0 by [@&#8203;vseanreesermsft](https://github.com/vseanreesermsft) in https://github.com/dotnet/aspnetcore/pull/59871

**Full Changelog**: https://github.com/dotnet/aspnetcore/compare/v9.0.1...v9.0.2

</details>

<details>
<summary>dotnet/efcore (Microsoft.EntityFrameworkCore)</summary>

### [`v9.0.2`](https://github.com/dotnet/efcore/releases/tag/v9.0.2): .NET 9.0.2

[Release](https://github.com/dotnet/core/releases/tag/v9.0.2)

#### What's Changed

-   \[release/9.0-staging] Fix to [#&#8203;35108](https://github.com/dotnet/efcore/issues/35108) - Temporal table migration regression from EF Core 8 to 9 by [@&#8203;maumar](https://github.com/maumar) in https://github.com/dotnet/efcore/pull/35289
-   \[release/9.0-staging] Don't throw PendingModelChangesWarning when applying a specific migration by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35353
-   \[release/8.0] Update Helix queues by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35408
-   \[release/9.0] Update Helix queues by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35407
-   \[release/9.0-staging] Fix to [#&#8203;35239](https://github.com/dotnet/efcore/issues/35239) - EF9: SaveChanges() is significantly slower in .NET9 vs. .NET8 when using .ToJson() Mapping vs. PostgreSQL Legacy POCO mapping by [@&#8203;maumar](https://github.com/maumar) in https://github.com/dotnet/efcore/pull/35360
-   \[release/9.0] Update dependencies from dotnet/arcade by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/efcore/pull/35415
-   \[release/9.0-staging] Don't scaffold NonNullableConventionState annotation by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35359
-   Update branding to 8.0.13 by [@&#8203;vseanreesermsft](https://github.com/vseanreesermsft) in https://github.com/dotnet/efcore/pull/35427
-   Update branding to 9.0.2 by [@&#8203;vseanreesermsft](https://github.com/vseanreesermsft) in https://github.com/dotnet/efcore/pull/35428
-   Merge branch 'release/9.0-staging' => 'release/9.0' by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35463
-   Merge branch 'release/8.0-staging' => 'release/8.0' by [@&#8203;AndriySvyryd](https://github.com/AndriySvyryd) in https://github.com/dotnet/efcore/pull/35464
-   \[automated] Merge branch 'release/8.0' => 'release/9.0' by [@&#8203;github-actions](https://github.com/github-actions) in https://github.com/dotnet/efcore/pull/35429
-   \[release/9.0] Update dependencies from dotnet/arcade by [@&#8203;dotnet-maestro](https://github.com/dotnet-maestro) in https://github.com/dotnet/efcore/pull/35460
-   Merging internal commits for release/9.0 by [@&#8203;vseanreesermsft](https://github.com/vseanreesermsft) in https://github.com/dotnet/efcore/pull/35472

**Full Changelog**: https://github.com/dotnet/efcore/compare/v9.0.1...v9.0.2

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNjUuMSIsInVwZGF0ZWRJblZlciI6IjM5LjE2NS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJLaW5kL1Jlbm92YXRlIl19-->

Reviewed-on: #18
Co-authored-by: Renovate <renovate@csw.im>
Co-committed-by: Renovate <renovate@csw.im>
2025-02-13 17:53:18 -05:00

23 lines
781 B
Docker

FROM mcr.microsoft.com/dotnet/aspnet:9.0@sha256:adc89f84d53514cdc17677f3334775879d80d08ac8997a4b3fba8d20a6d6de9d AS base
USER $APP_UID
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:7f8e8b1514a2eeccb025f1e9dd554e191b21afa7f43f8321b7bd2009cdd59a1d AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["LookingGlass.csproj", "./"]
RUN dotnet restore "LookingGlass.csproj"
COPY . .
WORKDIR "/src/"
RUN dotnet build "LookingGlass.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "LookingGlass.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "LookingGlass.dll"]