File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,10 +33,11 @@ RUN wget --progress=dot:giga "https://mirrors.edge.kernel.org/pub/software/scm/g
3333WORKDIR /git-${GIT_VERSION}
3434
3535# Compile with multi-core support directly passed to make.
36+ # RUNTIME_PREFIX=1 makes the binary 100% portable/relocatable so it can run from /usr/local
3637# NO_TCLTK=1 disables the GUI tools.
3738# NO_INSTALL_HARDLINKS=1 prevents Docker extraction bloat by using symlinks
38- RUN make -j"$(nproc)" prefix=/git-build NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 all && \
39- make prefix=/git-build NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 install
39+ RUN make -j"$(nproc)" prefix=/git-build RUNTIME_PREFIX=1 NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 all && \
40+ make prefix=/git-build RUNTIME_PREFIX=1 NO_TCLTK=1 NO_INSTALL_HARDLINKS=1 install
4041
4142# Strip debugging symbols to shrink the final size.
4243# Because Git contains shell scripts in its libexec folder, I use 'file' to ensure
You can’t perform that action at this time.
0 commit comments