Skip to content

Commit

Permalink
works on my machine, i don't get it :(
Browse files Browse the repository at this point in the history
  • Loading branch information
mplogas committed Mar 21, 2024
1 parent 0b8c019 commit 561c8fa
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,9 @@ COPY ["KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj", "KernelMemory.
RUN dotnet restore "./KernelMemory.FileWatcher/KernelMemory.FileWatcher.csproj"
COPY . .
WORKDIR "/src/KernelMemory.FileWatcher"
RUN dotnet build "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/build

FROM build AS publish
ARG BUILD_CONFIGURATION=Release
WORKDIR "/src/KernelMemory.FileWatcher"
RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
RUN dotnet publish "./KernelMemory.FileWatcher.csproj" -c $BUILD_CONFIGURATION -o /app/publish #/p:UseAppHost=false

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "KernelMemory.FileWatcher.dll"]

0 comments on commit 561c8fa

Please sign in to comment.