[docker] Fix build

This commit is contained in:
Laura Hausmann 2024-04-06 18:50:45 +02:00
parent 879c5e5b18
commit d9aebee1fc
No known key found for this signature in database
GPG key ID: D044E84C5BE01605

View file

@ -2,7 +2,8 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS builde
ARG TARGETARCH
WORKDIR /src
# copy csproj/fsproj and restore as distinct layers
# copy csproj/fsproj & nuget config, then restore as distinct layers
COPY NuGet.Config /src
COPY Iceshrimp.Backend/*.csproj /src/Iceshrimp.Backend/
COPY Iceshrimp.Parsing/*.fsproj /src/Iceshrimp.Parsing/
COPY Iceshrimp.Frontend/*.csproj /src/Iceshrimp.Frontend/