2020-10-08 03:59:51 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
|
2019-05-01 21:41:28 +00:00
|
|
|
WORKDIR /src
|
2019-10-13 14:20:08 +00:00
|
|
|
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
|
2019-05-01 21:41:28 +00:00
|
|
|
|
|
|
|
FROM build AS publish
|
2019-10-13 14:20:08 +00:00
|
|
|
RUN dotnet publish "SteamOpenIdConnectProvider.csproj" -c Release -o /app
|
2019-05-01 21:41:28 +00:00
|
|
|
|
2020-10-08 03:59:51 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
|
2019-05-01 21:41:28 +00:00
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=publish /app .
|
2019-11-15 00:22:21 +00:00
|
|
|
EXPOSE 80
|
2019-11-15 00:21:52 +00:00
|
|
|
HEALTHCHECK CMD curl --fail http://localhost/health || exit 1
|
|
|
|
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProvider.dll"]
|