File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -11,5 +11,8 @@ RUN apk --update add \
11
11
RUN git config --global user.email "git@localhost" && \
12
12
git config --global user.name "git"
13
13
14
+ ADD scripts/install_git_lfs.sh install_git_lfs.sh
15
+ RUN ./install_git_lfs.sh
16
+
14
17
ADD assets/ /opt/resource/
15
18
RUN chmod +x /opt/resource/*
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -eu
4
+
5
+ _main () {
6
+ local tmpdir
7
+ tmpdir=" $( mktemp -d git_lfs_install.XXXXXX) "
8
+
9
+ cd " $tmpdir "
10
+ curl -Lo git.tar.gz https://github.com/github/git-lfs/releases/download/v1.1.2/git-lfs-linux-amd64-1.1.2.tar.gz
11
+ gunzip git.tar.gz
12
+ tar xf git.tar
13
+ mv git-lfs-1.1.2/git-lfs /usr/bin
14
+ cd ..
15
+ rm -rf " $tmpdir "
16
+ git lfs install --skip-smudge
17
+ }
18
+
19
+ _main " $@ "
You can’t perform that action at this time.
0 commit comments