Skip to content

Commit

Permalink
fix build issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Youshaa Murhij committed Feb 11, 2024
1 parent 29f1ff4 commit 991f023
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
File renamed without changes.
23 changes: 3 additions & 20 deletions docker/build.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,5 @@
#!/bin/bash

yellow=`tput setaf 3`
green=`tput setaf 2`
violet=`tput setaf 5`
reset_color=`tput sgr0`

ARCH="$(uname -m)"

main () {
pushd "$(dirname "$0")";
if [ "$ARCH" = "x86_64" ] || [ "$ARCH" = "aarch64" ]; then
file="./Dockerfile.${ARCH}"
else
echo "There is no Dockerfile for ${yellow}${ARCH}${reset_color} arch"
fi
echo "Building image for ${yellow}${ARCH}${reset_color} arch. from Dockerfile: ${yellow}${file}${reset_color}"
docker build -f ${file} . -t ${ARCH}/dagm_mono:latest;
popd;
}

main "$@"; exit;
docker build . \
-f Dockerfile/Dockerfile \
-t x64/fmf:latest

0 comments on commit 991f023

Please sign in to comment.