fix: install dependencies in runtime container not only build container, refs NOISSUE

This commit is contained in:
simon 2025-05-18 11:59:52 +02:00
parent 4a77a0d33a
commit 8100998732

View File

@ -14,5 +14,6 @@ RUN dotnet publish ./song_of_the_day/song_of_the_day.csproj -o out
# Build runtime image # Build runtime image
FROM mcr.microsoft.com/dotnet/aspnet:9.0 FROM mcr.microsoft.com/dotnet/aspnet:9.0
WORKDIR /App WORKDIR /App
RUN apt update && apt install libldap-2.5-0 -y
COPY --from=build /App/out . COPY --from=build /App/out .
ENTRYPOINT ["dotnet", "song_of_the_day.dll"] ENTRYPOINT ["dotnet", "song_of_the_day.dll"]