diff options
-rw-r--r-- | etc/docker/ubuntu.Dockerfile | 13 |
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 |