Skip to content

Commit 50b52bb

Browse files
Makefile
* builds * runs * cleans up Also, version of image is defined in Makefile.
1 parent 84c4c07 commit 50b52bb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
VERSION := 0.1
2+
3+
webref-$(VERSION).tar.gz: Dockerfile config/requirements.txt Makefile
4+
docker build -t webref:$(VERSION) .
5+
docker save webref:$(VERSION) | gzip > webref-$(VERSION).tar.gz
6+
7+
up: webref-$(VERSION).tar.gz
8+
VERSION=$(VERSION) docker compose up --detach
9+
10+
clean:
11+
VERSION=$(VERSION) docker-compose down --rmi all --volumes --remove-orphans
12+
rm -f webref-$(VERSION).tar.gz

0 commit comments

Comments
 (0)