mirror of
https://github.com/byo-software/steam-openid-connect-provider.git
synced 2025-01-10 02:16:22 +00:00
Update Dockerfile
This commit is contained in:
parent
d737eefcd9
commit
f14105e9b0
1 changed files with 8 additions and 7 deletions
15
Dockerfile
15
Dockerfile
|
@ -1,15 +1,16 @@
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
COPY ["src/SteamOpenIdConnectProxy.csproj", "SteamOpenIdConnectProxy/"]
|
COPY ["src/SteamOpenIdConnectProvider.csproj", "SteamOpenIdConnectProvider/"]
|
||||||
RUN dotnet restore "SteamOpenIdConnectProxy/SteamOpenIdConnectProxy.csproj"
|
RUN dotnet restore "SteamOpenIdConnectProvider/SteamOpenIdConnectProvider.csproj"
|
||||||
COPY ["src/", "SteamOpenIdConnectProxy/"]
|
COPY ["src/", "SteamOpenIdConnectProvider/"]
|
||||||
WORKDIR "/src/SteamOpenIdConnectProxy"
|
WORKDIR "/src/SteamOpenIdConnectProvider"
|
||||||
RUN dotnet build "SteamOpenIdConnectProxy.csproj" -c Release -o /app
|
RUN dotnet build "SteamOpenIdConnectProvider.csproj" -c Release -o /app
|
||||||
|
|
||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish "SteamOpenIdConnectProxy.csproj" -c Release -o /app
|
RUN dotnet publish "SteamOpenIdConnectProvider.csproj" -c Release -o /app
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app .
|
COPY --from=publish /app .
|
||||||
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProxy.dll"]
|
HEALTHCHECK CMD curl --fail http://localhost:5000/health || exit 1
|
||||||
|
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProvider.dll"]
|
Loading…
Reference in a new issue