Skip to content

Commit

Permalink
Fix Docker build on modern Docker Buildx (#560)
Browse files Browse the repository at this point in the history
Co-authored-by: SJulianS <18482153+SJulianS@users.noreply.github.com>
  • Loading branch information
RenWal and SJulianS authored May 6, 2024
1 parent 13eadc7 commit e403bf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RUN apt-get update -y && \
apt-get install -y lsb-release

COPY . .
RUN ./install_dependencies.sh
RUN HAL_DOCKER=1 ./install_dependencies.sh

RUN mkdir build
WORKDIR ${hal_path}/build/
Expand Down
2 changes: 1 addition & 1 deletion install_dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ platform='unknown'
unamestr=$(uname)
distribution='unknown'
release='unknown'
if [[ -f "/.dockerenv" ]]; then
if [[ "${HAL_DOCKER:-0}" == "1" ]]; then
platform='docker'
distribution=$(lsb_release -is)
release=$(lsb_release -rs)
Expand Down

0 comments on commit e403bf5

Please sign in to comment.