Dmitry Beresnev commited on
Commit
d51edae
·
1 Parent(s): f745138

add initial configs for AI bot

Browse files
Files changed (3) hide show
  1. .gitignore +0 -0
  2. dockerfile +35 -0
  3. start.sh +9 -0
.gitignore ADDED
File without changes
dockerfile ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM node:20
3
+
4
+ WORKDIR /app
5
+
6
+ # Install Clawdbot
7
+ RUN npm install -g clawdbot
8
+
9
+ # Install Python + Whisper for voice
10
+ RUN apt-get update && apt-get install -y python3 python3-pip ffmpeg git
11
+ RUN pip3 install openai whisper sentence-transformers transformers
12
+
13
+ # Copy config / scripts
14
+ COPY . .
15
+
16
+ # Expose port for Space UI
17
+ EXPOSE 7860
18
+
19
+ # Environment variables
20
+ ENV LLM_API_BASE="https://researchengineering-agi.hf.space/v1/chat/completions"
21
+ ENV LLM_MODEL="deepseek-chat"
22
+ #ENV VAULT_REPO="https://researchengineering-agi-assistant.hf.space.git"
23
+ ENV VAULT_PATH="/app/vault"
24
+
25
+ # Clone vault repo on startup
26
+ #RUN git clone $VAULT_REPO $VAULT_PATH
27
+
28
+ # Start Clawdbot in HF-compatible mode
29
+ #CMD ["clawdbot", "gateway", "--port", "7860", "--vault-path", "/vault"]
30
+
31
+ # Make sure vault directory exists
32
+ RUN mkdir -p $VAULT_PATH
33
+
34
+ # Start Clawdbot
35
+ CMD ["clawdbot", "gateway", "--port", "7860", "--vault-path", "/app/vault"]
start.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Navigate to repo root
3
+ cd /app/vault
4
+
5
+ # Pull latest notes from repo
6
+ git pull || echo "Vault is up to date"
7
+
8
+ # Start Clawdbot
9
+ clawdbot gateway --port 7860 --vault-path /app/vault