-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
25 lines (20 loc) · 809 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
SHELL := /bin/bash
DIR := $(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
.PHONY: download-model build
include .secrets
install: download-model
pip install -r requirements.txt
pre-commit install
download-model:
if [ ! -f "$(DIR)/src/dlib_shape_predictor/shape_predictor_68_face_landmarks.dat" ]; then \
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2; \
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2; \
mv shape_predictor_68_face_landmarks.dat $(DIR)/src/dlib_shape_predictor/; \
fi;
build:
docker build -t yack:latest .
run: download-model build
docker run -e "DEEPGRAM_API_KEY=$(DEEPGRAM_API_KEY)" -e "ENV=production" -p 8000:8000 yack
push: build
docker tag yack:latest $(CONTAINER_REGISTRY)/yack:latest
docker push $(CONTAINER_REGISTRY)/yack:latest