From ecaaa27d87c31ab778a61798395311e2d27b268d Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 4 Mar 2024 00:43:43 +0100 Subject: [PATCH] [docker] Add Iceshrimp.Parsing to build files --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9d84edfb..145a0133 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,14 +16,18 @@ RUN yarn --immutable && yarn build FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-alpine AS backend ARG TARGETARCH -WORKDIR /backend +WORKDIR /src # copy csproj and restore as distinct layers -COPY Iceshrimp.Backend/*.csproj . +RUN mkdir Iceshrimp.Backend Iceshrimp.Parsing +COPY Iceshrimp.Backend/*.csproj /src/Iceshrimp.Backend +COPY Iceshrimp.Parsing/*.fsproj /src/Iceshrimp.Parsing +WORKDIR /src/Iceshrimp.Backend RUN dotnet restore -a $TARGETARCH # copy backend files -COPY Iceshrimp.Backend/. . +COPY Iceshrimp.Backend/. /src/Iceshrimp.Backend +COPY Iceshrimp.Parsing/. /src/Iceshrimp.Parsing # it's faster if we copy this later because we can parallelize it with buildkit, but the build fails if this file doesn't exist RUN mkdir -p ./wwwroot/.vite/ && touch ./wwwroot/.vite/manifest.json