From fae65a637cb55393557df110f1dff81212247918 Mon Sep 17 00:00:00 2001 From: Daniel Triendl Date: Mon, 13 Apr 2026 14:46:33 +0200 Subject: [PATCH] Fixed docker build order for StaticFiles --- server/src/CPATapi.Server/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/CPATapi.Server/Dockerfile b/server/src/CPATapi.Server/Dockerfile index 3ee3e8a..de489cf 100644 --- a/server/src/CPATapi.Server/Dockerfile +++ b/server/src/CPATapi.Server/Dockerfile @@ -22,6 +22,7 @@ COPY ["server/src/CPATapi.Server/CPATapi.Server.csproj", "server/src/CPATapi.Ser RUN dotnet restore "server/src/CPATapi.Server/CPATapi.Server.csproj" COPY . . WORKDIR "/src/server/src/CPATapi.Server" +COPY --from=build-userscript ["/src/dist/3CX TAPI.prod.user.js", "./wwwroot/3CX_TAPI.user.js"] RUN dotnet build "./CPATapi.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build # This stage is used to publish the service project to be copied to the final stage @@ -33,5 +34,4 @@ RUN dotnet publish "./CPATapi.Server.csproj" -c $BUILD_CONFIGURATION -o /app/pub FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -COPY --from=build-userscript ["/src/dist/3CX TAPI.prod.user.js", "./wwwroot/3CX_TAPI.user.js"] ENTRYPOINT ["dotnet", "CPATapi.Server.dll"]