-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 943 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
ifneq ("$(wildcard .env)","")
include .env
export
endif
run:
python server.py
install:
apt update && apt install -y libsndfile1 ffmpeg
pip install -r requirements.txt
# remote_docker := unset DOCKER_HOST; docker
# ifeq ($(REMOTE),true)
# remote_docker := DOCKER_HOST=$(REMOTE_DOCKER_HOST) docker
# endif
# service_name = tts-engine-hub
# docker-build:
# $(remote_docker) build --progress=plain -t sucicada/$(service_name):latest .
# docker-push:
# docker push sucicada/$(service_name):latest
# _docker-run: docker-build
# @echo $(remote)
# @echo $(DOCKER_HOST)
# @echo $(remote_docker)
# $(remote_docker) stop $(service_name) || true
# $(remote_docker) rm $(service_name) || true
# $(remote_docker) run -d -p 41402:41402 --name $(service_name) \
# --env-file .env \
# --restart=always \
# sucicada/$(service_name):latest
# docker-run-remote:
# REMOTE=true make _docker-run
# docker-run-local:
# make _docker-run