mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-10 02:16:22 +00:00
16 lines
No EOL
698 B
Docker
16 lines
No EOL
698 B
Docker
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build
|
|
WORKDIR /src
|
|
COPY ["src/SteamOpenIdConnectProvider.csproj", "SteamOpenIdConnectProvider/"]
|
|
RUN dotnet restore "SteamOpenIdConnectProvider/SteamOpenIdConnectProvider.csproj"
|
|
COPY ["src/", "SteamOpenIdConnectProvider/"]
|
|
WORKDIR "/src/SteamOpenIdConnectProvider"
|
|
RUN dotnet build "SteamOpenIdConnectProvider.csproj" -c Release -o /app
|
|
|
|
FROM build AS publish
|
|
RUN dotnet publish "SteamOpenIdConnectProvider.csproj" -c Release -o /app
|
|
|
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
|
|
WORKDIR /app
|
|
COPY --from=publish /app .
|
|
HEALTHCHECK CMD curl --fail http://localhost:5000/health || exit 1
|
|
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProvider.dll"] |