CodeLiturgy.Dashboard/BlueWest.Console/Dockerfile

19 lines
578 B
Docker

FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["BlueWest.Console/BlueWest.Console.csproj", "BlueWest.Console/"]
RUN dotnet restore "BlueWest.Console/BlueWest.Console.csproj"
COPY . .
WORKDIR "/src/BlueWest.Console"
RUN dotnet build "BlueWest.Console.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "BlueWest.Console.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BlueWest.Console.dll"]