diff --git a/src/Dockerfile b/src/Dockerfile index 4b004a48..412a1396 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -2,12 +2,8 @@ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base -#Install System.Drawing native dependencies, required for NetBarcode RUN apt-get update \ && apt-get install -y --allow-unauthenticated \ - libc6-dev \ - libgdiplus \ - libx11-dev \ fonts-urw-base35 \ fonts-dejavu \ && rm -rf /var/lib/apt/lists/* @@ -24,10 +20,10 @@ COPY ["BinaryKits.Zpl.Label/BinaryKits.Zpl.Label.csproj", "BinaryKits.Zpl.Label/ RUN dotnet restore "BinaryKits.Zpl.Viewer.WebApi/BinaryKits.Zpl.Viewer.WebApi.csproj" COPY . . WORKDIR "/src/BinaryKits.Zpl.Viewer.WebApi" -RUN dotnet build "BinaryKits.Zpl.Viewer.WebApi.csproj" -c Release -o /app/build +RUN dotnet build "BinaryKits.Zpl.Viewer.WebApi.csproj" --os linux -c Release -o /app/build FROM build AS publish -RUN dotnet publish "BinaryKits.Zpl.Viewer.WebApi.csproj" -c Release -o /app/publish +RUN dotnet publish "BinaryKits.Zpl.Viewer.WebApi.csproj" --os linux -c Release -o /app/publish FROM base AS final WORKDIR /app