Split compose into base + dev overlay for a local two-container stack
This commit is contained in:
1 parent
d78a13815a
commit
bbe792192d
5 files changed
+109
-15
No files matched your search
+8
-2
@@ -4,9 +4,15 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# Copy only the csproj and restore first, so the NuGet restore layer stays
|
||||
# cached as long as the dependencies do not change.
|
||||
# Copy the solution-wide build files first (Central Package Management lives in
|
||||
# Directory.Packages.props; without it a restore fails with NU1015). Then the
|
||||
# csproj of every project in the web app's dependency tree. Restoring before
|
||||
# copying the rest of the source keeps the NuGet layer cached as long as the
|
||||
# dependencies do not change.
|
||||
COPY Directory.Build.props Directory.Packages.props ./
|
||||
COPY Elternbeirat.Web/Elternbeirat.Web.csproj Elternbeirat.Web/
|
||||
COPY Elternbeirat.PocketBase/Elternbeirat.PocketBase.csproj Elternbeirat.PocketBase/
|
||||
COPY Elternbeirat.Contracts/Elternbeirat.Contracts.csproj Elternbeirat.Contracts/
|
||||
RUN dotnet restore Elternbeirat.Web/Elternbeirat.Web.csproj
|
||||
|
||||
# Then the rest of the source.
|
||||
|
||||
Reference in new issue
Block a user