Skip to content

Commit 4581df2

Browse files
Fix server release (#2671)
1 parent 0af8dbf commit 4581df2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

apps/server/docker/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ RUN pnpm web build
5858

5959
FROM build-base AS server
6060

61-
RUN wget -qO- https://sh.rustup.rs | sh -s -- -yq --profile minimal
61+
RUN --mount=type=cache,target=/root/.rustup/downloads \
62+
wget -qO- https://sh.rustup.rs | sh -s -- -yq --profile minimal
6263

6364
ENV PATH="/root/.cargo/bin:$PATH"
6465

@@ -76,12 +77,15 @@ RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/
7677

7778
RUN cd ./scripts; npm i --omit=dev && npm i -g prisma
7879

79-
RUN --mount=type=cache,target=/root/.cache/prisma/binaries/cli/ \
80+
RUN cargo --version
81+
82+
RUN --mount=type=cache,target=/root/.rustup/downloads \
8083
env PATH="$(npm prefix -g)/bin:$PATH" pnpm prep
8184

8285
COPY --from=web /srv/spacedrive/apps/web/dist /srv/spacedrive/apps/web/dist
8386

84-
RUN cargo build --features assets --release -p sd-server
87+
RUN --mount=type=cache,target=/root/.rustup/downloads \
88+
cargo build --features assets --release -p sd-server
8589

8690
#--
8791

0 commit comments

Comments
 (0)