Skip to content

Commit ab7e225

Browse files
fix git-lfs config issue
1 parent 1532162 commit ab7e225

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,14 @@ RUN chmod +x /entrypoint.sh ;\
2222
add-apt-repository ppa:git-core/ppa ;\
2323
apt-get update -y ;\
2424
apt-get install --no-install-recommends -y \
25-
git \
26-
git-lfs ;\
25+
git ;\
26+
# Install git-lfs without post-install configuration to avoid dpkg errors
27+
apt-get download git-lfs ;\
28+
dpkg --unpack git-lfs*.deb ;\
29+
rm -f /var/lib/dpkg/info/git-lfs.postinst ;\
30+
dpkg --configure git-lfs ;\
31+
apt-get install -f ;\
32+
rm git-lfs*.deb ;\
2733
apt-get clean ;\
2834
rm -rf /var/lib/apt/lists/*
2935

0 commit comments

Comments
 (0)