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
No related branches found
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 && \ ...@@ -18,12 +18,12 @@ RUN apk update && \
WORKDIR /duniter WORKDIR /duniter
# copy source tree
COPY ./ ./
# install latest stable rust # install latest stable rust
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
# copy source tree
COPY ./ ./
# build duniter # build duniter
RUN PATH=${HOME}/.cargo/bin:${PATH} \ RUN PATH=${HOME}/.cargo/bin:${PATH} \
RUSTFLAGS="-C target-feature=-crt-static -L/usr/lib" \ 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.
Finish editing this message first!
Please register or to comment