Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix server release #2671

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions apps/server/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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

#--

Expand Down
Loading