Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
21 lines
479 B
Makefile
21 lines
479 B
Makefile
ACR := crfhiskybert.azurecr.io
|
|
IMAGE := $(ACR)/fida/ki/fhi-statistikk-mcp
|
|
TAG := $(shell git rev-parse --short HEAD)
|
|
|
|
.PHONY: docker-build docker-push docker acr-login
|
|
|
|
acr-login:
|
|
az acr login --name crfhiskybert
|
|
|
|
docker-build:
|
|
docker build --target prod -t $(IMAGE):$(TAG) -t $(IMAGE):latest .
|
|
|
|
docker-push:
|
|
docker push $(IMAGE):$(TAG)
|
|
docker push $(IMAGE):latest
|
|
|
|
docker: acr-login docker-build docker-push
|
|
|
|
run:
|
|
docker run --rm -p 18000:8000 $(IMAGE):latest
|