2023-04-12 23:13:14 +00:00
|
|
|
version: '3.6'
|
|
|
|
|
|
|
|
services:
|
|
|
|
api:
|
2023-04-19 16:43:10 +00:00
|
|
|
image: quay.io/go-skynet/local-ai:latest
|
2023-04-15 23:39:07 +00:00
|
|
|
build:
|
|
|
|
context: .
|
|
|
|
dockerfile: Dockerfile
|
2023-04-19 15:10:29 +00:00
|
|
|
# args:
|
|
|
|
# BUILD_TYPE: generic # Uncomment to build CPU generic code that works on most HW
|
2023-04-12 23:13:14 +00:00
|
|
|
ports:
|
|
|
|
- 8080:8080
|
|
|
|
environment:
|
2023-04-15 23:39:07 +00:00
|
|
|
- MODELS_PATH=$MODELS_PATH
|
|
|
|
- CONTEXT_SIZE=$CONTEXT_SIZE
|
2023-04-12 23:13:14 +00:00
|
|
|
- THREADS=$THREADS
|
2023-04-15 23:39:07 +00:00
|
|
|
volumes:
|
2023-04-19 16:43:10 +00:00
|
|
|
- ./models:/models:cached
|