Skip to content

Commit c695b97

Browse files
Dockerfile: Fixing paths
1 parent 3f26020 commit c695b97

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@ WORKDIR /app
55
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
66
ARG BUILD_CONFIGURATION=Release
77
WORKDIR /src
8-
COPY ["Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj", "Nullinside.Cicd.GitHub/"]
9-
RUN dotnet restore "src/Nullinside.Cicd.GitHub.csproj"
8+
RUN ls -a
9+
COPY ["src/Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj", "Nullinside.Cicd.GitHub/"]
10+
RUN dotnet restore "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj"
1011
COPY . .
1112
WORKDIR "/src/src"
12-
RUN dotnet build "Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/build
13+
RUN dotnet build "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/build
1314

1415
FROM build AS publish
1516
ARG BUILD_CONFIGURATION=Release
16-
RUN dotnet publish "Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
17+
RUN dotnet publish "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
1718

1819
FROM base AS final
1920
WORKDIR /app

0 commit comments

Comments
 (0)