I’m developing a containerized .NET 6.0 Linux-based web API app. The image I’m using is Debian-based. How to add/install the Libreoffice SDK and properly configure it from there?
Here’s my dockerfile:
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
EXPOSE 80
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["Sample.WebApi/Sample.WebApi.csproj", "Sample.WebApi/"]
RUN dotnet restore "Sample.WebApi/Sample.WebApi.csproj"
COPY . .
WORKDIR "/src/Sample.WebApi"
RUN dotnet build "Sample.WebApi.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "Sample.WebApi.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Sample.WebApi.dll"]