EbukaGaus commited on
Commit
74bcacd
·
1 Parent(s): f11ae57
Files changed (3) hide show
  1. Dockerfile +22 -0
  2. comp_eb +1 -0
  3. requirements.txt +26 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official lightweight Python image
2
+ FROM python:3.11-slim
3
+
4
+ # Set work directory in the image
5
+ WORKDIR /code
6
+
7
+ # Install system dependencies (if needed)
8
+ RUN apt-get update && apt-get install -y build-essential
9
+
10
+ # Copy app code
11
+ COPY comp_eb /code/comp_eb
12
+ COPY comp_eb/requirements.txt /code/
13
+
14
+ # Install Python dependencies
15
+ RUN pip install --upgrade pip
16
+ RUN pip install -r /code/requirements.txt
17
+
18
+ # Expose port 7860 for HF Spaces
19
+ EXPOSE 7860
20
+
21
+ # Start the FastAPI app with Socket.IO support
22
+ CMD ["uvicorn", "comp_eb.main:app", "--host", "0.0.0.0", "--port", "7860"]
comp_eb ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit 7c582c2658a021ed52a182a82d091bec3feabeab
requirements.txt ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # comp_eb/requirements.txt
2
+ uvicorn
3
+ gunicorn
4
+ fastapi
5
+ Jinja2
6
+ linkup-sdk
7
+ tavily-python
8
+ google-search-results
9
+ fastapi-middleware
10
+ openai
11
+ tavily-python
12
+ python-dotenv
13
+ PyYAML
14
+ SQLAlchemy
15
+ passlib[bcrypt]
16
+ python-jose[cryptography]
17
+ PyJWT
18
+ alembic
19
+ slowapi
20
+ pydantic
21
+ pydantic[email]
22
+ python-multipart
23
+ psycopg2-binary
24
+ python-socketio
25
+ python-engineio
26
+ websockets