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