Selector/Dockerfile.CLI

23 lines
654 B
Docker
Raw Normal View History

FROM mcr.microsoft.com/dotnet/sdk:6.0 AS base
2022-02-13 12:07:09 +00:00
COPY *.sln .
COPY Selector/*.csproj ./Selector/
COPY Selector.Cache/*.csproj ./Selector.Cache/
COPY Selector.Event/*.csproj ./Selector.Event/
COPY Selector.Model/*.csproj ./Selector.Model/
COPY Selector.CLI/*.csproj ./Selector.CLI/
COPY Selector.Tests/*.csproj ./Selector.Tests/
2022-02-13 12:40:30 +00:00
RUN dotnet restore ./Selector.CLI/Selector.CLI.csproj
2022-02-13 12:07:09 +00:00
COPY . ./
FROM base as publish
2022-02-13 12:40:30 +00:00
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release -o /app --no-restore
2022-02-13 12:07:09 +00:00
FROM mcr.microsoft.com/dotnet/aspnet:6.0
2022-02-13 12:40:30 +00:00
WORKDIR /app
COPY --from=publish /app ./
2022-02-13 12:07:09 +00:00
ENV DOTNET_EnableDiagnostics=0
ENTRYPOINT ["dotnet", "Selector.CLI.dll"]