Fixed dockerfile
continuous-integration/drone/pr Build is failing

This commit is contained in:
2026-05-09 17:23:45 +02:00
parent ccf49d79fc
commit 3b74138e9c
+3 -3
View File
@@ -2,11 +2,11 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /app
COPY ["../nuget.config", "./"]
COPY ["../Shop/Shop.csproj", "Shop/"]
COPY ["nuget.config", "./"]
COPY ["Shop/Shop.csproj", "Shop/"]
RUN dotnet restore "Shop/Shop.csproj" --configfile nuget.config
COPY . .
RUN dotnet publish "../Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
RUN dotnet publish "Shop/Shop.csproj" -c Release -o /app/publish /p:UseAppHost=false
# Stage 2: Final Image
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS final