From cd9916faf52c6e0dc41cf9f8718a9b2cfc04bfa0 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Wed, 1 May 2024 22:23:41 +0200 Subject: [PATCH] [docker] Update dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index bf6fa14f..f25481d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,5 @@ # To build with ILLink & AOT enabled, run docker build --target image-aot # To build without VIPS support, run docker build --build-arg="VIPS=false" -ARG VIPS=true FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS builder-jit WORKDIR /src @@ -11,6 +10,7 @@ COPY Iceshrimp.Parsing/*.fsproj /src/Iceshrimp.Parsing/ COPY Iceshrimp.Frontend/*.csproj /src/Iceshrimp.Frontend/ COPY Iceshrimp.Shared/*.csproj /src/Iceshrimp.Shared/ WORKDIR /src/Iceshrimp.Backend +ARG VIPS=true ARG TARGETARCH RUN dotnet restore -a $TARGETARCH -p:BundleNativeDepsMusl=$VIPS -p:EnableLibVips=$VIPS @@ -32,6 +32,7 @@ COPY Iceshrimp.Parsing/*.fsproj /src/Iceshrimp.Parsing/ COPY Iceshrimp.Frontend/*.csproj /src/Iceshrimp.Frontend/ COPY Iceshrimp.Shared/*.csproj /src/Iceshrimp.Shared/ WORKDIR /src/Iceshrimp.Backend +ARG VIPS=true ARG TARGETARCH RUN dotnet restore -a $TARGETARCH -p:BundleNativeDeps=$VIPS -p:EnableLibVips=$VIPS