-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
27 lines (25 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
include .env
build:
docker build .docker/node$(DOCKER_NODE_VERSION)-base/ \
-t $(DOCKER_SERVER_HOST)/$(DOCKER_PROJECT_PATH)/node$(DOCKER_NODE_VERSION)-base:$(DOCKER_IMAGE_VERSION) \
--build-arg DOCKER_SERVER_HOST=$(DOCKER_SERVER_HOST) \
--build-arg DOCKER_PROJECT_PATH=$(DOCKER_PROJECT_PATH) \
--build-arg DOCKER_NODE_VERSION=$(DOCKER_NODE_VERSION) \
--build-arg DOCKER_IMAGE_VERSION=$(DOCKER_IMAGE_VERSION)
docker build .docker/node$(DOCKER_NODE_VERSION)-yarn/ \
-t $(DOCKER_SERVER_HOST)/$(DOCKER_PROJECT_PATH)/node$(DOCKER_NODE_VERSION)-yarn:$(DOCKER_IMAGE_VERSION) \
--build-arg DOCKER_SERVER_HOST=$(DOCKER_SERVER_HOST) \
--build-arg DOCKER_PROJECT_PATH=$(DOCKER_PROJECT_PATH) \
--build-arg DOCKER_NODE_VERSION=$(DOCKER_NODE_VERSION) \
--build-arg DOCKER_IMAGE_VERSION=$(DOCKER_IMAGE_VERSION)
docker build .docker/node$(DOCKER_NODE_VERSION)-dev/ \
-t $(DOCKER_SERVER_HOST)/$(DOCKER_PROJECT_PATH)/node$(DOCKER_NODE_VERSION)-dev:$(DOCKER_IMAGE_VERSION) \
--build-arg DOCKER_SERVER_HOST=$(DOCKER_SERVER_HOST) \
--build-arg DOCKER_PROJECT_PATH=$(DOCKER_PROJECT_PATH) \
--build-arg DOCKER_NODE_VERSION=$(DOCKER_NODE_VERSION) \
--build-arg DOCKER_IMAGE_VERSION=$(DOCKER_IMAGE_VERSION)
docker-compose build --pull
down:
docker-compose down
up:
docker-compose up -d