blob: fe7fe1fef91d668ca1d4f6cc0b4d68db5ffd863c [file] [log] [blame]
MUTABLE_VERSION ?= latest
VERSION ?= $(shell git rev-parse --short HEAD)
IMAGE_PROD := avm99963/fisipastanagapp
docker-prod: Dockerfile
docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) .
docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION)
push-prod: docker-prod
docker push $(IMAGE_PROD):$(VERSION)
# First copy .env.sample to .env and docker-compose.yml.sample to
# docker-compose.yml, and change them as you wish.
run-local: docker-prod
docker-compose up