From 1402b13aa218faf6b57c858410c8fa51133d41a9 Mon Sep 17 00:00:00 2001 From: Emmanuel Knafo Date: Wed, 22 Jul 2026 10:34:28 -0400 Subject: [PATCH] fix(docker): remove unused ci-final stage breaking container builds The ci-final stage was added as the last Dockerfile stage but its COPY publish/ . requires a pre-published directory absent from the build context. Plain docker build (GitHub + Azure DevOps) defaults to the last stage and fails. GitLab explicitly targets --target final and is unaffected. Nothing references ci-final. Fixes #64 --- src/webapp01/Dockerfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/webapp01/Dockerfile b/src/webapp01/Dockerfile index 0ebe9a1..809601c 100644 --- a/src/webapp01/Dockerfile +++ b/src/webapp01/Dockerfile @@ -26,9 +26,4 @@ RUN dotnet publish "./webapp01.csproj" -c $BUILD_CONFIGURATION -o /app/publish / FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "webapp01.dll"] - -FROM base AS ci-final -WORKDIR /app -COPY publish/ . ENTRYPOINT ["dotnet", "webapp01.dll"] \ No newline at end of file