summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Davison <dandavison7@gmail.com>2021-08-12 13:51:30 -0700
committerDan Davison <dandavison7@gmail.com>2021-08-20 10:19:55 -0700
commitbe61273130215c8bc6b9aac19aa07da460728d7c (patch)
tree049e51db26c08a848556c8ee6bae371928687311
parent9fa449e2b530d644f3156cd7b85141c43fea8b8a (diff)
Compile delta from source in dockerfile
-rw-r--r--etc/docker/ubuntu.Dockerfile13
1 files changed, 5 insertions, 8 deletions
diff --git a/etc/docker/ubuntu.Dockerfile b/etc/docker/ubuntu.Dockerfile
index 3f217e44..f3aa0785 100644
--- a/etc/docker/ubuntu.Dockerfile
+++ b/etc/docker/ubuntu.Dockerfile
@@ -1,17 +1,14 @@
FROM ubuntu:latest
RUN apt-get update && \
- apt-get install -y curl git less
-
-RUN git clone https://github.com/dandavison/delta.git
+ apt-get install -y curl git less gcc
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
-RUN curl -OL https://github.com/dandavison/delta/releases/download/0.8.3/delta-0.8.3-x86_64-unknown-linux-musl.tar.gz && \
- tar -xzvf delta-0.8.3-x86_64-unknown-linux-musl.tar.gz
-
-WORKDIR delta-0.8.3-x86_64-unknown-linux-musl
+RUN git clone https://github.com/dandavison/delta.git
+WORKDIR delta
+RUN /root/.cargo/bin/cargo build --release
-ENV PATH="${PWD}:${PATH}"
+ENV PATH="${PWD}/target/release:${PATH}"
CMD delta