We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a39d8d1 commit 29a60acCopy full SHA for 29a60ac
1 file changed
Makefile
@@ -1,4 +1,4 @@
1
-.PHONY: build build-linux run build-image deploy test docs
+.PHONY: build build-linux run build-image-linux build-image-arm deploy test docs
2
IMAGE_NAME := approved-api
3
IMAGE_TAG := latest
4
@@ -17,7 +17,12 @@ run: build
17
run-dev: docs build
18
@go run cmd/main.go
19
20
-build-image: docs
+build-image-linux: build-linux docs
21
+ echo "Building ${IMAGE_NAME}:${IMAGE_TAG} image...";
22
+ docker build -f Dockerfile -t ${IMAGE_NAME}:${IMAGE_TAG} .;
23
+ echo "Image ${IMAGE_NAME}:${IMAGE_TAG} built.";
24
+
25
+build-image-arm: build docs
26
echo "Building ${IMAGE_NAME}:${IMAGE_TAG} image...";
27
docker build -f arm.Dockerfile -t ${IMAGE_NAME}:${IMAGE_TAG} .;
28
echo "Image ${IMAGE_NAME}:${IMAGE_TAG} built.";
0 commit comments