Skip to content

Commit

Permalink
Change to makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary-H9 committed Apr 4, 2024
1 parent 638746c commit ee41f39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ test: build
build:
@ARCH=`uname -m`; \
case $$ARCH in \
x86_64) \
echo "Building for x86_64 architecture"; \
docker build --platform linux/amd64 --file Dockerfile --tag $(IMAGE_NAME) . ;; \
aarch64) \
echo "Building for aarch64 architecture"; \
docker build --platform linux/aarch64 --file Dockerfile --tag $(IMAGE_NAME) . ;; \
arm64) \
echo "Building for ARM64 architecture"; \
docker build --platform linux/arm64 --file Dockerfile --tag $(IMAGE_NAME) . ;; \
*) \
echo "Unsupported architecture: $$ARCH"; \
exit 1 ;; \
echo "Architecture: $$ARCH"; \
docker build --file Dockerfile --tag $(IMAGE_NAME) . ;; \
esac

0 comments on commit ee41f39

Please sign in to comment.