-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathMakefile
40 lines (35 loc) · 908 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
ifneq (,$(wildcard ./.env))
include .env
endif
GIT_HASH ?= $(shell git rev-parse --short HEAD)
PLATFORMS ?= linux/amd64
_login:
${DOCKER_LOGIN_CMD}
build : _login
docker buildx build \
--progress plain \
--push \
--platform ${PLATFORMS} \
-t ${IMAGE_REGISTRY}/skynet:summaries-${GIT_HASH} \
-t ${IMAGE_REGISTRY}/skynet:whisper-${GIT_HASH} \
-t ${IMAGE_REGISTRY}/skynet:${GIT_HASH} \
.
build-cpu : _login
docker buildx build \
--progress plain \
--push \
--platform ${PLATFORMS} \
--build-arg BASE_IMAGE_BUILD=ubuntu:22.04 \
--build-arg BASE_IMAGE_RUN=ubuntu:22.04 \
--build-arg BUILD_WITH_VLLM=0 \
-t ${IMAGE_REGISTRY}/skynet:${GIT_HASH}-cpu \
.
local_build:
docker buildx build \
--progress plain \
--load \
--build-arg BASE_IMAGE_BUILD=ubuntu:22.04 \
--build-arg BASE_IMAGE_RUN=ubuntu:22.04 \
--build-arg BUILD_WITH_VLLM=0 \
-t jitsi/skynet:latest \
.