steam-openid-connect-provider/Dockerfile

16 lines
696 B
Text
Raw Normal View History

2019-09-27 13:25:46 +00:00
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 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
2019-09-27 13:25:46 +00:00
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
2019-05-01 21:41:28 +00:00
WORKDIR /app
COPY --from=publish /app .
2019-11-02 17:13:17 +00:00
HEALTHCHECK CMD curl --fail http://localhost:80/health || exit 1
2019-10-13 14:20:08 +00:00
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProvider.dll"]