blob: fe7fe1fef91d668ca1d4f6cc0b4d68db5ffd863c [file] [log] [blame]
Adrià Vilanova Martínez60524332022-11-20 02:33:56 +01001MUTABLE_VERSION ?= latest
2VERSION ?= $(shell git rev-parse --short HEAD)
3
4IMAGE_PROD := avm99963/fisipastanagapp
5
6docker-prod: Dockerfile
7 docker build --force-rm -f Dockerfile --tag=$(IMAGE_PROD):$(VERSION) .
8 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION)
9
10push-prod: docker-prod
11 docker push $(IMAGE_PROD):$(VERSION)
Adrià Vilanova Martínez8fd915b2022-12-10 20:27:10 +010012
13# First copy .env.sample to .env and docker-compose.yml.sample to
14# docker-compose.yml, and change them as you wish.
15run-local: docker-prod
16 docker-compose up