2023-11-16 17:49:24 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base
|
2022-02-13 12:07:09 +00:00
|
|
|
|
|
|
|
COPY *.sln .
|
|
|
|
COPY Selector/*.csproj ./Selector/
|
|
|
|
COPY Selector.Cache/*.csproj ./Selector.Cache/
|
2022-10-10 12:21:56 +01:00
|
|
|
COPY Selector.Data/*.csproj ./Selector.Data/
|
2022-02-13 12:07:09 +00:00
|
|
|
COPY Selector.Event/*.csproj ./Selector.Event/
|
|
|
|
COPY Selector.Model/*.csproj ./Selector.Model/
|
|
|
|
COPY Selector.CLI/*.csproj ./Selector.CLI/
|
2022-02-13 17:12:00 +00:00
|
|
|
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 . ./
|
2022-02-13 17:12:00 +00:00
|
|
|
|
|
|
|
FROM base as publish
|
2023-05-14 13:31:12 +01:00
|
|
|
RUN dotnet publish Selector.CLI/Selector.CLI.csproj -c Release -o /app
|
2022-02-13 12:07:09 +00:00
|
|
|
|
2023-11-16 17:49:24 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:8.0
|
2022-02-13 12:40:30 +00:00
|
|
|
WORKDIR /app
|
2022-02-13 17:12:00 +00:00
|
|
|
COPY --from=publish /app ./
|
2022-02-13 12:07:09 +00:00
|
|
|
ENV DOTNET_EnableDiagnostics=0
|
2023-09-10 19:28:42 +01:00
|
|
|
|
2023-11-16 17:49:24 +00:00
|
|
|
USER app
|
2023-09-10 19:28:42 +01:00
|
|
|
|
2022-02-13 12:07:09 +00:00
|
|
|
ENTRYPOINT ["dotnet", "Selector.CLI.dll"]
|
|
|
|
|