Skip to content
Snippets Groups Projects
Commit 0376ca6a authored by Gilles Filippini's avatar Gilles Filippini Committed by pini
Browse files

docker: save a few minutes of build time

by installing rust before copying the source tree.
parent 67174a26
Branches
No related tags found
1 merge request!1416docker: save a few minutes of build time
Pipeline #22391 passed
......@@ -18,12 +18,12 @@ RUN apk update && \
WORKDIR /duniter
# copy source tree
COPY ./ ./
# install latest stable rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# copy source tree
COPY ./ ./
# build duniter
RUN PATH=${HOME}/.cargo/bin:${PATH} \
RUSTFLAGS="-C target-feature=-crt-static -L/usr/lib" \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment