Skip to content

Commit 59dae1f

Browse files
committed
Dockerfile to install Delta under Ubuntu
1 parent c46d332 commit 59dae1f

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

etc/docker/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
delta-ubuntu:
2+
docker build -f ubuntu.Dockerfile -t delta-ubuntu .

etc/docker/delta-ubuntu

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
docker run -i delta-ubuntu delta $@

etc/docker/ubuntu.Dockerfile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:20.04
2+
3+
RUN apt-get update && \
4+
apt-get install -y curl git
5+
6+
RUN curl -OL https://github.com/dandavison/delta/releases/download/0.4.5/delta-0.4.5-x86_64-unknown-linux-gnu.tar.gz && \
7+
tar -xzvf delta-0.4.5-x86_64-unknown-linux-gnu.tar.gz
8+
9+
WORKDIR delta-0.4.5-x86_64-unknown-linux-gnu
10+
11+
ENV PATH="${PWD}:${PATH}"
12+
13+
CMD delta

0 commit comments

Comments
 (0)