2020-10-08 03:59:51 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
|
2021-05-09 10:02:36 +00:00
|
|
|
|
2019-05-01 21:41:28 +00:00
|
|
|
WORKDIR /src
|
2021-05-09 10:02:36 +00:00
|
|
|
|
|
|
|
# Copy the project file to create layer with packages
|
|
|
|
COPY src/SteamOpenIdConnectProvider.csproj .
|
|
|
|
RUN dotnet restore ./SteamOpenIdConnectProvider.csproj
|
|
|
|
|
|
|
|
# Copy the rest of the source
|
|
|
|
COPY src/* .
|
|
|
|
RUN dotnet build ./SteamOpenIdConnectProvider.csproj -c Release -o /app
|
2019-05-01 21:41:28 +00:00
|
|
|
|
|
|
|
FROM build AS publish
|
2021-05-09 10:02:36 +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
|
2021-05-09 10:02:36 +00:00
|
|
|
|
2019-11-15 00:21:52 +00:00
|
|
|
HEALTHCHECK CMD curl --fail http://localhost/health || exit 1
|
2021-05-09 10:02:36 +00:00
|
|
|
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProvider.dll"]
|