Pedrollo plugins
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
# Stage 1: Build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
ARG PLUGIN_PROJECT=DiunaBI.Plugins.Morska
|
||||
WORKDIR /
|
||||
|
||||
# Copy solution and all project files for restore
|
||||
@@ -9,7 +10,7 @@ COPY DiunaBI.API/DiunaBI.API.csproj DiunaBI.API/
|
||||
COPY DiunaBI.Domain/DiunaBI.Domain.csproj DiunaBI.Domain/
|
||||
COPY DiunaBI.Application/DiunaBI.Application.csproj DiunaBI.Application/
|
||||
COPY DiunaBI.Infrastructure/DiunaBI.Infrastructure.csproj DiunaBI.Infrastructure/
|
||||
COPY DiunaBI.Plugins.Morska/DiunaBI.Plugins.Morska.csproj DiunaBI.Plugins.Morska/
|
||||
COPY ${PLUGIN_PROJECT}/${PLUGIN_PROJECT}.csproj ${PLUGIN_PROJECT}/
|
||||
|
||||
# Restore dependencies
|
||||
RUN dotnet restore DiunaBI.API/DiunaBI.API.csproj
|
||||
@@ -18,7 +19,7 @@ RUN dotnet restore DiunaBI.API/DiunaBI.API.csproj
|
||||
COPY . .
|
||||
|
||||
# Build plugin first
|
||||
WORKDIR /DiunaBI.Plugins.Morska
|
||||
WORKDIR /${PLUGIN_PROJECT}
|
||||
RUN dotnet build -c Release
|
||||
|
||||
# Build and publish API
|
||||
@@ -27,7 +28,7 @@ RUN dotnet publish -c Release -o /app/publish --no-restore
|
||||
|
||||
# Copy plugin DLL to publish output
|
||||
RUN mkdir -p /app/publish/Plugins && \
|
||||
cp /DiunaBI.Plugins.Morska/bin/Release/net10.0/DiunaBI.Plugins.Morska.dll /app/publish/Plugins/
|
||||
cp /${PLUGIN_PROJECT}/bin/Release/net10.0/${PLUGIN_PROJECT}.dll /app/publish/Plugins/
|
||||
|
||||
# Stage 2: Runtime
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
|
||||
|
||||
Reference in New Issue
Block a user