-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 701 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# IMAGE_NAME ?= $(shell bash -c 'read -p "Image name: " image_name; echo $$image_name')
# TAG ?= $(shell bash -c 'read -p "Tag: " tag; echo $$tag')
OTHER_CONTAINER_NAMES ?= $(shell bash -c 'read -p "Other container names: " container_names; echo $$container_names')
# TAG ?= $(shell bash -c 'read -s -p "Tag: " pwd; echo $$pwd')
include .env
build-client:
npm run build
deploy: docker-build
sudo docker compose up -d
docker-build:
sudo docker build --network=host -t ${IMAGE_NAME}:${TAG} .
docker-stop:
sudo docker compose stop
docker-clean: docker-stop
sudo docker rm ${CONTAINER_NAME} ${OTHER_CONTAINER_NAMES}
sudo docker rmi ${IMAGE_NAME}:${TAG}