mirror of
https://github.com/senju1337/senju.git
synced 2025-12-23 23:39:27 +00:00
feat: deploy a production level webserver with docker
Refs: OPS-15
This commit is contained in:
parent
8cd216673c
commit
2c75fa26a7
4 changed files with 3 additions and 4 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# First create a readable multiline string
|
||||
SYSTEM_PROMPT=$(cat <<EOF
|
||||
|
|
@ -65,4 +66,4 @@ CONF=$(jq -n --arg system "$SYSTEM_PROMPT" '{
|
|||
curl http://ollama:11434/api/pull -d '{"model": "phi3"}'
|
||||
curl http://ollama:11434/api/create -d "$CONF"
|
||||
cd /app
|
||||
poetry run sh -c 'flask --app senju/main run --host=0.0.0.0'
|
||||
poetry run sh -c 'waitress-serve --listen=*:5000 senju.main:app'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue