alaselababatunde commited on
Commit
84bcecf
·
1 Parent(s): b7d05f4

style: finalize Theo AI replication with branding assets and simplified build

Browse files
Files changed (3) hide show
  1. Dockerfile +3 -16
  2. requirements.txt +2 -0
  3. static/assets/logo.png +0 -0
Dockerfile CHANGED
@@ -1,17 +1,7 @@
1
  # ==============================================================
2
- # Tech Disciples AI — Dockerfile (for Hugging Face Spaces)
3
  # ==============================================================
4
 
5
- # Stage 1: Build the React frontend
6
- FROM node:20-alpine AS frontend-builder
7
- WORKDIR /app/frontend
8
- COPY frontend/package*.json ./
9
- # Clean install to ensure all dependencies are properly resolved
10
- RUN npm install --legacy-peer-deps
11
- COPY frontend/ ./
12
- RUN npm run build
13
-
14
- # Stage 2: Set up the FastAPI backend
15
  FROM python:3.10-slim
16
 
17
  # Environment setup
@@ -30,13 +20,10 @@ RUN apt-get update && apt-get install -y \
30
  COPY requirements.txt .
31
  RUN pip install --no-cache-dir -r requirements.txt
32
 
33
- # Copy all source files
34
  COPY . .
35
 
36
- # Copy the built frontend from Stage 1
37
- COPY --from=frontend-builder /app/frontend/dist ./frontend/dist
38
-
39
- # Define Hugging Face token env var (Spaces injects the secret automatically)
40
  ENV HUGGINGFACEHUB_API_TOKEN=""
41
 
42
  # Expose port for FastAPI
 
1
  # ==============================================================
2
+ # Tech Disciples AI — Dockerfile (Minimalist Python Version)
3
  # ==============================================================
4
 
 
 
 
 
 
 
 
 
 
 
5
  FROM python:3.10-slim
6
 
7
  # Environment setup
 
20
  COPY requirements.txt .
21
  RUN pip install --no-cache-dir -r requirements.txt
22
 
23
+ # Copy all source files (main.py, static/, templates/)
24
  COPY . .
25
 
26
+ # Define Hugging Face token env var
 
 
 
27
  ENV HUGGINGFACEHUB_API_TOKEN=""
28
 
29
  # Expose port for FastAPI
requirements.txt CHANGED
@@ -9,3 +9,5 @@ langchain-core>=0.2.0,<0.3.0
9
  langchain-community>=0.2.0,<0.3.0
10
  python-multipart
11
  requests
 
 
 
9
  langchain-community>=0.2.0,<0.3.0
10
  python-multipart
11
  requests
12
+ jinja2
13
+ markdown
static/assets/logo.png ADDED