LookingGlass/Dockerfile
Renovate aa3be92a26
chore(deps): pin dependencies (#7)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| mcr.microsoft.com/devcontainers/dotnet |  | pinDigest |  -> `f84f5dc` |
| [mcr.microsoft.com/dotnet/aspnet](https://github.com/dotnet/aspnetcore) | stage | pinDigest |  -> `587c1dd` |
| [mcr.microsoft.com/dotnet/sdk](https://github.com/dotnet/sdk) | final | pinDigest |  -> `b27b135` |
| postgres |  | pinDigest |  -> `d1168ad` |

---

### 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:eyJjcmVhdGVkSW5WZXIiOiIzOS4xNDAuMCIsInVwZGF0ZWRJblZlciI6IjM5LjE0MC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJLaW5kL1Jlbm92YXRlIl19-->

Reviewed-on: https://www.coastalcommits.com/cswimr/myhm-commission/pulls/7
Co-authored-by: Renovate <renovate@coastalcommits.com>
Co-committed-by: Renovate <renovate@coastalcommits.com>
2025-01-29 12:43:06 -05:00

23 lines
796 B
Docker

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