Skip to content

Commit ca9b2a5

Browse files
committed
docker fix
1 parent 468751d commit ca9b2a5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ WORKDIR /app
77
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
88
ARG BUILD_CONFIGURATION=Release
99
WORKDIR /src
10-
COPY ["./DatabaseProjectAPI/DatabaseProjectAPI.csproj", "."]
11-
COPY ["./KubsConnect/KubsConnect.csproj", "."]
12-
RUN dotnet restore "./DatabaseProjectAPI.csproj"
10+
COPY ["./DatabaseProjectAPI/DatabaseProjectAPI.csproj", "DatabaseProjectAPI/"]
11+
COPY ["./KubsConnect/KubsConnect.csproj", "DatabaseProjectAPI/"]
12+
RUN dotnet restore "DatabaseProjectAPI/DatabaseProjectAPI.csproj"
1313
COPY . .
14-
WORKDIR "/src/."
15-
RUN dotnet build "./DatabaseProjectAPI.csproj" -c $BUILD_CONFIGURATION -o /app/build
14+
WORKDIR "/src/DatabaseProjectAPI"
15+
RUN dotnet build "DatabaseProjectAPI.csproj" -c $BUILD_CONFIGURATION -o /app/build
1616

1717
FROM build AS publish
1818
ARG BUILD_CONFIGURATION=Release
19-
RUN dotnet publish "./DatabaseProjectAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
19+
RUN dotnet publish "DatabaseProjectAPI.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
2020

2121
FROM base AS final
2222
WORKDIR /app

0 commit comments

Comments
 (0)