From 4581df202020191dabc32517795a6b7026f2cf2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Vasconcellos?= Date: Sun, 18 Aug 2024 01:35:18 +0000 Subject: [PATCH] Fix server release (#2671) --- apps/server/docker/Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/apps/server/docker/Dockerfile b/apps/server/docker/Dockerfile index c892f549bd40..1c67a025ec01 100644 --- a/apps/server/docker/Dockerfile +++ b/apps/server/docker/Dockerfile @@ -58,7 +58,8 @@ RUN pnpm web build FROM build-base AS server -RUN wget -qO- https://sh.rustup.rs | sh -s -- -yq --profile minimal +RUN --mount=type=cache,target=/root/.rustup/downloads \ + wget -qO- https://sh.rustup.rs | sh -s -- -yq --profile minimal ENV PATH="/root/.cargo/bin:$PATH" @@ -76,12 +77,15 @@ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/ RUN cd ./scripts; npm i --omit=dev && npm i -g prisma -RUN --mount=type=cache,target=/root/.cache/prisma/binaries/cli/ \ +RUN cargo --version + +RUN --mount=type=cache,target=/root/.rustup/downloads \ env PATH="$(npm prefix -g)/bin:$PATH" pnpm prep COPY --from=web /srv/spacedrive/apps/web/dist /srv/spacedrive/apps/web/dist -RUN cargo build --features assets --release -p sd-server +RUN --mount=type=cache,target=/root/.rustup/downloads \ + cargo build --features assets --release -p sd-server #--