aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Earthfile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Earthfile b/Earthfile
index d63e4d3..0749ce3 100644
--- a/Earthfile
+++ b/Earthfile
@@ -46,11 +46,9 @@ build:
COPY yarte.toml yarte.toml
RUN find ./content -name "*.DS_Store" -delete
- RUN --mount=type=cache,target=/source/locus/target \
- --mount=type=cache,target=/root/.cargo/registry \
- cargo build --release --bin locus \
- && strip -s /source/locus/target/x86_64-unknown-linux-musl/release/locus \
- && mv /source/locus/target/x86_64-unknown-linux-musl/release/locus .
+ RUN cargo build --release --bin locus
+ RUN strip -s /source/locus/target/x86_64-unknown-linux-musl/release/locus
+ RUN mv /source/locus/target/x86_64-unknown-linux-musl/release/locus .
RUN strip -s /source/locus/locus
RUN mkdir /new_tmp