muralipala1504 commited on
Commit
596438d
·
1 Parent(s): 7ba0cb2

feat: add Docker support + fix __init__.py config import

Browse files
.dockerignore ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ .git
2
+ *.pid
3
+ *.log
4
+ __pycache__
5
+ *.pyc
6
+ .env
7
+ deepshell.pid
8
+ deepshell.log
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy frontend static files
6
+ COPY index.html app.js services.css ./
7
+
8
+ # Copy backend
9
+ COPY deepshell-backend/ ./deepshell-backend/
10
+
11
+ # Install dependencies
12
+ RUN pip install --no-cache-dir -r deepshell-backend/requirements.txt && \
13
+ pip install --no-cache-dir -e deepshell-backend/
14
+
15
+ # Env defaults
16
+ ENV PORT=8001
17
+ ENV PROVIDER=groq
18
+
19
+ EXPOSE 8001
20
+
21
+ CMD ["python", "-m", "deepshell"]
deepshell-backend/deepshell/__init__.py CHANGED
@@ -1,16 +1,13 @@
1
  """
2
  DeepShell Backend - FastAPI-based LLM service with Groq support
3
-
4
  This is the web backend for DeepShell ModUI.
5
  It provides REST endpoints for chat, streaming, and LLM interactions.
6
  """
7
-
8
  __version__ = "1.0.0"
9
  __author__ = "DeepShell Team"
10
  __email__ = "muralipala1504@gmail.com"
11
  __license__ = "MIT"
12
 
13
  from .llm import get_global_client
14
- from .config import config
15
 
16
- __all__ = ["get_global_client", "config", "__version__"]
 
1
  """
2
  DeepShell Backend - FastAPI-based LLM service with Groq support
 
3
  This is the web backend for DeepShell ModUI.
4
  It provides REST endpoints for chat, streaming, and LLM interactions.
5
  """
 
6
  __version__ = "1.0.0"
7
  __author__ = "DeepShell Team"
8
  __email__ = "muralipala1504@gmail.com"
9
  __license__ = "MIT"
10
 
11
  from .llm import get_global_client
 
12
 
13
+ __all__ = ["get_global_client", "__version__"]
docker-compose.yml ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ version: "3.8"
2
+
3
+ services:
4
+ deepshell:
5
+ build: .
6
+ container_name: deepshell
7
+ ports:
8
+ - "${PORT:-8001}:8001"
9
+ environment:
10
+ - GROQ_API_KEY=${GROQ_API_KEY}
11
+ - PROVIDER=groq
12
+ - PORT=8001
13
+ restart: unless-stopped