Skip to content

Commit

Permalink
Makefile
Browse files Browse the repository at this point in the history
* builds
* runs
* cleans up

Also, version of image is defined in Makefile.
  • Loading branch information
adrianschlatter committed Jan 4, 2024
1 parent 84c4c07 commit 50b52bb
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
VERSION := 0.1

webref-$(VERSION).tar.gz: Dockerfile config/requirements.txt Makefile
docker build -t webref:$(VERSION) .
docker save webref:$(VERSION) | gzip > webref-$(VERSION).tar.gz

up: webref-$(VERSION).tar.gz
VERSION=$(VERSION) docker compose up --detach

clean:
VERSION=$(VERSION) docker-compose down --rmi all --volumes --remove-orphans
rm -f webref-$(VERSION).tar.gz

0 comments on commit 50b52bb

Please sign in to comment.