Skip to content

Commit

Permalink
Dockerfile: Fixing paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ProgrammingByPermutation committed Mar 5, 2024
1 parent 3f26020 commit c695b97
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,16 @@ WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj", "Nullinside.Cicd.GitHub/"]
RUN dotnet restore "src/Nullinside.Cicd.GitHub.csproj"
RUN ls -a
COPY ["src/Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj", "Nullinside.Cicd.GitHub/"]
RUN dotnet restore "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj"
COPY . .
WORKDIR "/src/src"
RUN dotnet build "Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/build
RUN dotnet build "Nullinside.Cicd.GitHub/Nullinside.Cicd.GitHub.csproj" -c $BUILD_CONFIGURATION -o /app/build

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

FROM base AS final
WORKDIR /app
Expand Down

0 comments on commit c695b97

Please sign in to comment.