Skip to content

Commit

Permalink
Fix Docker build on modern Docker Buildx
Browse files Browse the repository at this point in the history
  • Loading branch information
RenWal committed Mar 5, 2024
1 parent 8a6afbb commit d9bbefe
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 d9bbefe

Please sign in to comment.