Revert "Dockerfile: use relative paths when in the /home/linuxbrew directory"

This reverts commit 65a755a16079ee4fc507d95de0e8725bb05621f0.
This commit is contained in:
Michka Popoff 2021-08-18 12:39:05 +02:00
parent 3573ff8d5b
commit 6d61fb03cd
No known key found for this signature in database
GPG Key ID: 033D03F151030611

View File

@ -37,22 +37,15 @@ COPY --chown=linuxbrew:linuxbrew . /home/linuxbrew/.linuxbrew/Homebrew
ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH ENV PATH=/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH
WORKDIR /home/linuxbrew WORKDIR /home/linuxbrew
RUN mkdir -p \ # hadolint ignore=DL3003
.linuxbrew/bin \ RUN cd /home/linuxbrew/.linuxbrew \
.linuxbrew/etc \ && mkdir -p bin etc include lib opt sbin share var/homebrew/linked Cellar \
.linuxbrew/include \ && ln -s ../Homebrew/bin/brew /home/linuxbrew/.linuxbrew/bin/ \
.linuxbrew/lib \ && git -C /home/linuxbrew/.linuxbrew/Homebrew remote set-url origin https://github.com/Homebrew/brew \
.linuxbrew/opt \ && git -C /home/linuxbrew/.linuxbrew/Homebrew fetch origin \
.linuxbrew/sbin \
.linuxbrew/share \
.linuxbrew/var/homebrew/linked \
.linuxbrew/Cellar \
&& ln -s ../Homebrew/bin/brew .linuxbrew/bin/brew \
&& git -C .linuxbrew/Homebrew remote set-url origin https://github.com/Homebrew/brew \
&& git -C .linuxbrew/Homebrew fetch origin \
&& HOMEBREW_NO_ANALYTICS=1 HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/core \ && HOMEBREW_NO_ANALYTICS=1 HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/core \
&& brew install-bundler-gems \ && brew install-bundler-gems \
&& brew cleanup \ && brew cleanup \
&& { git -C .linuxbrew/Homebrew config --unset gc.auto; true; } \ && { git -C /home/linuxbrew/.linuxbrew/Homebrew config --unset gc.auto; true; } \
&& { git -C .linuxbrew/Homebrew config --unset homebrew.devcmdrun; true; } \ && { git -C /home/linuxbrew/.linuxbrew/Homebrew config --unset homebrew.devcmdrun; true; } \
&& rm -rf .cache && rm -rf ~/.cache