-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdockerfile_admin_front.release
24 lines (21 loc) · 1.14 KB
/
dockerfile_admin_front.release
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Botticelli.Server.FrontNew/Botticelli.Server.FrontNew.csproj", "Botticelli.Server.FrontNew/"]
COPY ["Botticelli.Analytics.Shared/Botticelli.Analytics.Shared.csproj", "Botticelli.Analytics.Shared/"]
COPY ["Botticelli.Server.Data.Entities/Botticelli.Server.Data.Entities.csproj", "Botticelli.Server.Data.Entities/"]
COPY ["Botticelli.Shared/Botticelli.Shared.csproj", "Botticelli.Shared/"]
COPY ["Botticelli.Server.Models/Botticelli.Server.Models.csproj", "Botticelli.Server.Models/"]
RUN dotnet restore "Botticelli.Server.FrontNew/Botticelli.Server.FrontNew.csproj"
COPY . .
WORKDIR "/src/Botticelli.Server.FrontNew"
RUN dotnet build "Botticelli.Server.FrontNew.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "Botticelli.Server.FrontNew.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Botticelli.Server.FrontNew.dll"]