Skip to content

Commit 54d8169

Browse files
author
Rui Yang
committed
Revert "downloand and install git-lfs from source"
This reverts commit de01fcc.
1 parent de01fcc commit 54d8169

File tree

2 files changed

+3
-17
lines changed

2 files changed

+3
-17
lines changed

dockerfiles/alpine/Dockerfile

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN apk --no-cache add \
77
curl \
88
git \
99
git-daemon \
10+
git-lfs \
1011
gnupg \
1112
gzip \
1213
jq \
@@ -19,15 +20,6 @@ RUN apk --no-cache add \
1920
libstdc++ \
2021
coreutils
2122

22-
RUN curl -s https://api.github.com/repos/git-lfs/git-lfs/releases/latest \
23-
| grep "browser_download_url.*linux-amd64" \
24-
| cut -d : -f 2,3 \
25-
| xargs curl -L --output git-lfs.tar.gz && \
26-
mkdir git-lfs && tar -xzf git-lfs.tar.gz -C git-lfs && \
27-
./git-lfs/install.sh && \
28-
rm -rf git-lfs*
29-
RUN git lfs -v
30-
3123
WORKDIR /root
3224
RUN git clone https://github.com/proxytunnel/proxytunnel.git && \
3325
cd proxytunnel && \

dockerfiles/ubuntu/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,8 @@ RUN apt-add-repository ppa:git-core/ppa \
2121
&& apt-get install -y git \
2222
&& rm -rf /var/lib/apt/lists/*
2323

24-
RUN curl -s https://api.github.com/repos/git-lfs/git-lfs/releases/latest \
25-
| grep "browser_download_url.*linux-amd64" \
26-
| cut -d : -f 2,3 \
27-
| xargs curl -L --output git-lfs.tar.gz && \
28-
mkdir git-lfs && tar -xzf git-lfs.tar.gz -C git-lfs && \
29-
./git-lfs/install.sh && \
30-
rm -rf git-lfs*
31-
RUN git lfs -v
24+
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
25+
RUN apt-get install -y git-lfs
3226

3327
WORKDIR /root
3428
RUN git clone https://github.com/proxytunnel/proxytunnel.git && \

0 commit comments

Comments
 (0)