steam-openid-connect-provider/Dockerfile
Enes Sadık Özbek b89464e461 Fix dockerfile
2019-09-27 16:25:46 +03:00

15 lines
No EOL
604 B
Docker

FROM mcr.microsoft.com/dotnet/core/sdk:3.0 AS build
WORKDIR /src
COPY ["src/SteamOpenIdConnectProxy.csproj", "SteamOpenIdConnectProxy/"]
RUN dotnet restore "SteamOpenIdConnectProxy/SteamOpenIdConnectProxy.csproj"
COPY ["src/", "SteamOpenIdConnectProxy/"]
WORKDIR "/src/SteamOpenIdConnectProxy"
RUN dotnet build "SteamOpenIdConnectProxy.csproj" -c Release -o /app
FROM build AS publish
RUN dotnet publish "SteamOpenIdConnectProxy.csproj" -c Release -o /app
FROM mcr.microsoft.com/dotnet/core/aspnet:3.0 AS base
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "SteamOpenIdConnectProxy.dll"]