final implementation
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
Some checks failed
Build and Push Docker Image / build-and-push (push) Has been cancelled
This commit is contained in:
20
Makefile
Normal file
20
Makefile
Normal file
@@ -0,0 +1,20 @@
|
||||
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
|
||||
Reference in New Issue
Block a user