-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdockerfile_admin_front.development
More file actions
27 lines (24 loc) · 1.38 KB
/
dockerfile_admin_front.development
File metadata and controls
27 lines (24 loc) · 1.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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=Debug
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=Debug
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 /https/botticelli_server_dev_cert.pfx /https/botticelli_server_dev_cert.pfx
COPY --from=publish /app/publish .
ENV ASPNETCORE_Kestrel__Certificates__Default__Password=12345678
ENV ASPNETCORE_Kestrel__Certificates__Default__Path=/https/botticelli_server_dev_cert.pfx
ENTRYPOINT ["dotnet", "Botticelli.Server.FrontNew.dll"]