-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
23 lines (20 loc) · 645 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: all build_local run_local local build_docker clean_docker run_docker docker
all: local
build_local:
@cd assets && npm run build
@go build -o bin/meer
run_local:
@. ./.env && ./bin/meer
local: build_local run_local
build_docker:
docker build -t meer . && \
docker images meer
run_docker:
. ./.env && \
docker run --env REPLICA_ID=$$REPLICA_ID --env NODE_LIST=$$NODE_LIST --env PORT=$$PORT -p 80:80 meer
clean_docker:
docker container kill $$(docker container ls -aq); \
docker rm $$(docker ps -a -q) \
docker system prune --all --force --volumes; \
docker image rm $$(docker image ls -a -q)
docker : build_docker run_docker