Skip to content

Commit be61273

Browse files
committed
Compile delta from source in dockerfile
1 parent 9fa449e commit be61273

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

etc/docker/ubuntu.Dockerfile

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,14 @@
11
FROM ubuntu:latest
22

33
RUN apt-get update && \
4-
apt-get install -y curl git less
5-
6-
RUN git clone https://github.com/dandavison/delta.git
4+
apt-get install -y curl git less gcc
75

86
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
97

10-
RUN curl -OL https://github.com/dandavison/delta/releases/download/0.8.3/delta-0.8.3-x86_64-unknown-linux-musl.tar.gz && \
11-
tar -xzvf delta-0.8.3-x86_64-unknown-linux-musl.tar.gz
12-
13-
WORKDIR delta-0.8.3-x86_64-unknown-linux-musl
8+
RUN git clone https://github.com/dandavison/delta.git
9+
WORKDIR delta
10+
RUN /root/.cargo/bin/cargo build --release
1411

15-
ENV PATH="${PWD}:${PATH}"
12+
ENV PATH="${PWD}/target/release:${PATH}"
1613

1714
CMD delta

0 commit comments

Comments
 (0)