Skip to content

Commit 21746d0

Browse files
fix(docker): remove unused ci-final stage breaking container builds (#65)
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
1 parent 601ebff commit 21746d0

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/webapp01/Dockerfile

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,4 @@ RUN dotnet publish "./webapp01.csproj" -c $BUILD_CONFIGURATION -o /app/publish /
2626
FROM base AS final
2727
WORKDIR /app
2828
COPY --from=publish /app/publish .
29-
ENTRYPOINT ["dotnet", "webapp01.dll"]
30-
31-
FROM base AS ci-final
32-
WORKDIR /app
33-
COPY publish/ .
3429
ENTRYPOINT ["dotnet", "webapp01.dll"]

0 commit comments

Comments
 (0)