Skip to content

Commit 2fb27c7

Browse files
committed
add Makefile commands for creating Docker image
1 parent 9a6bb09 commit 2fb27c7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,12 @@ download-soil-data:
9292
gdown 1P3xl1YRlfcMjfO_4PM39tkrrlL3hoLzv; \
9393
gdown 1K0GkqxhZiVUND6yfFmaI7tYanLktekyp; \
9494
gdown 1z7foFFHv_mTsuxMYnfOQRvXT5LKYlYFN \
95+
96+
DOCKER_IMAGE_TAG ?= ghcr.io/techmatters/soil-id-db:latest
97+
build_docker_image:
98+
@echo "Building to tag $(DOCKER_IMAGE_TAG)"
99+
docker build -t $(DOCKER_IMAGE_TAG) .
100+
101+
push_docker_image:
102+
@echo "Pushing tag $(DOCKER_IMAGE_TAG). Make sure to provide a versioned tag in addition to updating latest!"
103+
docker push $(DOCKER_IMAGE_TAG)

0 commit comments

Comments
 (0)