Kerikim commited on
Commit
be67417
Β·
1 Parent(s): 9105f1f
Dockerfile CHANGED
@@ -4,24 +4,31 @@ FROM python:3.11-slim
4
  ENV PIP_NO_CACHE_DIR=1 \
5
  PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1 \
 
7
  HF_HOME=/data/hf \
 
8
  HUGGINGFACE_HUB_CACHE=/data/hf/hub \
9
  SENTENCE_TRANSFORMERS_HOME=/data/hf/sentence-transformers \
10
  HF_HUB_DISABLE_SYMLINKS_WARNING=1
11
- # (Intentionally NOT setting TRANSFORMERS_CACHE to avoid v5 deprecation noise)
12
 
13
  WORKDIR /app
14
 
 
15
  RUN apt-get update && apt-get install -y --no-install-recommends \
16
  build-essential \
17
  && rm -rf /var/lib/apt/lists/*
18
 
 
 
 
 
19
  COPY requirements.txt /app/requirements.txt
20
  RUN pip install --no-cache-dir -r /app/requirements.txt
21
 
 
22
  COPY app /app/app
23
- COPY start.sh /start.sh
24
- RUN chmod +x /start.sh
25
 
26
  EXPOSE 7860
27
- CMD ["/start.sh"]
 
 
 
4
  ENV PIP_NO_CACHE_DIR=1 \
5
  PYTHONDONTWRITEBYTECODE=1 \
6
  PYTHONUNBUFFERED=1 \
7
+ # Put all HF caches in /data (writable on Spaces)
8
  HF_HOME=/data/hf \
9
+ TRANSFORMERS_CACHE=/data/hf/transformers \
10
  HUGGINGFACE_HUB_CACHE=/data/hf/hub \
11
  SENTENCE_TRANSFORMERS_HOME=/data/hf/sentence-transformers \
12
  HF_HUB_DISABLE_SYMLINKS_WARNING=1
 
13
 
14
  WORKDIR /app
15
 
16
+ # System deps
17
  RUN apt-get update && apt-get install -y --no-install-recommends \
18
  build-essential \
19
  && rm -rf /var/lib/apt/lists/*
20
 
21
+ # Writable caches
22
+ RUN mkdir -p /data/hf /data/hf/transformers /data/hf/hub /data/hf/sentence-transformers
23
+
24
+ # Python deps
25
  COPY requirements.txt /app/requirements.txt
26
  RUN pip install --no-cache-dir -r /app/requirements.txt
27
 
28
+ # App code
29
  COPY app /app/app
 
 
30
 
31
  EXPOSE 7860
32
+
33
+ # βœ… Correct uvicorn invocation (no stray space, options before APP)
34
+ CMD ["uvicorn", "--host", "0.0.0.0", "--port", "7860", "app.main:api"]
agentic-finlit-backend-output.md CHANGED
@@ -3,8 +3,8 @@
3
  ## πŸ“Š Project Information
4
 
5
  - **Project Name**: `agentic-finlit-backend`
6
- - **Generated On**: 2025-09-08 06:47:20 (Etc/GMT+5 / GMT-05:00)
7
- - **Total Files Processed**: 15
8
  - **Export Tool**: Easy Whole Project to Single Text File for LLMs v1.1.0
9
  - **Tool Author**: Jota / JosΓ© Guilherme Pandolfi
10
 
@@ -31,12 +31,11 @@
31
  β”‚ β”œβ”€β”€ πŸ“„ ingest.py (845 B)
32
  β”‚ β”œβ”€β”€ πŸ“„ main.py (2.65 KB)
33
  β”‚ └── πŸ“„ README.md (107 B)
34
- β”œβ”€β”€ πŸ“„ Dockerfile (759 B)
35
  β”œβ”€β”€ πŸ“„ elkay.txt
36
  β”œβ”€β”€ πŸ“„ git
37
  β”œβ”€β”€ πŸ“„ README.md (275 B)
38
- β”œβ”€β”€ πŸ“„ requirements.txt (345 B)
39
- └── πŸ“„ start.sh (513 B)
40
  ```
41
 
42
  ## πŸ“‘ Table of Contents
@@ -55,7 +54,6 @@
55
  - [πŸ“„ elkay.txt](#πŸ“„-elkay-txt)
56
  - [πŸ“„ README.md](#πŸ“„-readme-md)
57
  - [πŸ“„ requirements.txt](#πŸ“„-requirements-txt)
58
- - [πŸ“„ start.sh](#πŸ“„-start-sh)
59
 
60
  ---
61
 
@@ -63,11 +61,11 @@
63
 
64
  | Metric | Count |
65
  |--------|-------|
66
- | Total Files | 15 |
67
  | Total Directories | 2 |
68
- | Text Files | 13 |
69
  | Binary Files | 2 |
70
- | Total Size | 14.7 KB |
71
 
72
  ### πŸ“„ File Types Distribution
73
 
@@ -77,7 +75,6 @@
77
  | `.md` | 2 |
78
  | `no extension` | 2 |
79
  | `.txt` | 2 |
80
- | `.sh` | 1 |
81
 
82
  ## πŸ’» File Code Contents
83
 
@@ -694,44 +691,6 @@ bcrypt==4.0.1
694
 
695
  ---
696
 
697
- ### <a id="πŸ“„-start-sh"></a>πŸ“„ `start.sh`
698
-
699
- **File Info:**
700
- - **Size**: 513 B
701
- - **Extension**: `.sh`
702
- - **Language**: `bash`
703
- - **Location**: `start.sh`
704
- - **Relative Path**: `root`
705
- - **Created**: 2025-09-08 06:46:28 (Etc/GMT+5 / GMT-05:00)
706
- - **Modified**: 2025-09-08 06:46:32 (Etc/GMT+5 / GMT-05:00)
707
- - **MD5**: `46cf828cf89073cc21b995fceb3e438b`
708
- - **SHA256**: `83f8f902f2bd85a2f554357c64d8e68bf639e1a8de2c09ef1bf06bf936ce4c33`
709
- - **Encoding**: ASCII
710
-
711
- **File code content:**
712
-
713
- ```bash
714
- #!/usr/bin/env bash
715
- set -e
716
-
717
- # Make sure cache dirs exist and are writable at runtime
718
- mkdir -p "${HF_HOME:-/data/hf}" \
719
- "${HUGGINGFACE_HUB_CACHE:-/data/hf/hub}" \
720
- "${SENTENCE_TRANSFORMERS_HOME:-/data/hf/sentence-transformers}"
721
-
722
- # Best effort: open perms on /data (Space uses a non-root user sometimes)
723
- chmod -R 777 /data || true
724
-
725
- # Optional: reduce noise from deprecation warnings
726
- export PYTHONWARNINGS="ignore::FutureWarning"
727
-
728
- # Boot the API
729
- exec uvicorn app.main:api --host 0.0.0.0 --port 7860
730
-
731
- ```
732
-
733
- ---
734
-
735
  ## 🚫 Binary/Excluded Files
736
 
737
  The following files were not included in the text content:
 
3
  ## πŸ“Š Project Information
4
 
5
  - **Project Name**: `agentic-finlit-backend`
6
+ - **Generated On**: 2025-09-08 06:56:25 (Etc/GMT+5 / GMT-05:00)
7
+ - **Total Files Processed**: 14
8
  - **Export Tool**: Easy Whole Project to Single Text File for LLMs v1.1.0
9
  - **Tool Author**: Jota / JosΓ© Guilherme Pandolfi
10
 
 
31
  β”‚ β”œβ”€β”€ πŸ“„ ingest.py (845 B)
32
  β”‚ β”œβ”€β”€ πŸ“„ main.py (2.65 KB)
33
  β”‚ └── πŸ“„ README.md (107 B)
34
+ β”œβ”€β”€ πŸ“„ Dockerfile (1011 B)
35
  β”œβ”€β”€ πŸ“„ elkay.txt
36
  β”œβ”€β”€ πŸ“„ git
37
  β”œβ”€β”€ πŸ“„ README.md (275 B)
38
+ └── πŸ“„ requirements.txt (345 B)
 
39
  ```
40
 
41
  ## πŸ“‘ Table of Contents
 
54
  - [πŸ“„ elkay.txt](#πŸ“„-elkay-txt)
55
  - [πŸ“„ README.md](#πŸ“„-readme-md)
56
  - [πŸ“„ requirements.txt](#πŸ“„-requirements-txt)
 
57
 
58
  ---
59
 
 
61
 
62
  | Metric | Count |
63
  |--------|-------|
64
+ | Total Files | 14 |
65
  | Total Directories | 2 |
66
+ | Text Files | 12 |
67
  | Binary Files | 2 |
68
+ | Total Size | 14.44 KB |
69
 
70
  ### πŸ“„ File Types Distribution
71
 
 
75
  | `.md` | 2 |
76
  | `no extension` | 2 |
77
  | `.txt` | 2 |
 
78
 
79
  ## πŸ’» File Code Contents
80
 
 
691
 
692
  ---
693
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
694
  ## 🚫 Binary/Excluded Files
695
 
696
  The following files were not included in the text content:
agentic-finlit-backend-output.txt CHANGED
@@ -5,8 +5,8 @@ PROJECT EXPORT FOR LLMs
5
  PROJECT INFORMATION:
6
  --------------------------------------------------
7
  Project Name: agentic-finlit-backend
8
- Generated On: 2025-09-08 06:47:20 (Etc/GMT+5 / GMT-05:00)
9
- Total Files Processed: 15
10
  Export Tool: Easy Whole Project to Single Text File for LLMs v1.1.0
11
  Tool Author: Jota / JosΓ© Guilherme Pandolfi
12
 
@@ -33,21 +33,20 @@ PROJECT STRUCTURE
33
  β”‚ β”œβ”€β”€ πŸ“„ ingest.py (845 B)
34
  β”‚ β”œβ”€β”€ πŸ“„ main.py (2.65 KB)
35
  β”‚ └── πŸ“„ README.md (107 B)
36
- β”œβ”€β”€ πŸ“„ Dockerfile (759 B)
37
  β”œβ”€β”€ πŸ“„ elkay.txt
38
  β”œβ”€β”€ πŸ“„ git
39
  β”œβ”€β”€ πŸ“„ README.md (275 B)
40
- β”œβ”€β”€ πŸ“„ requirements.txt (345 B)
41
- └── πŸ“„ start.sh (513 B)
42
 
43
  ================================================================================
44
  PROJECT STATISTICS
45
  ================================================================================
46
- Total Files: 15
47
  Total Directories: 2
48
- Text Files: 13
49
  Binary Files: 2
50
- Total Size: 14.7 KB
51
 
52
  FILE TYPES DISTRIBUTION:
53
  ------------------------------
@@ -55,7 +54,6 @@ FILE TYPES DISTRIBUTION:
55
  .md : 2
56
  no extension : 2
57
  .txt : 2
58
- .sh : 1
59
 
60
  ================================================================================
61
  FILE CODE CONTENTS
@@ -687,45 +685,6 @@ bcrypt==4.0.1
687
  ================================================================================
688
 
689
 
690
- ================================================================================
691
- FILE: start.sh
692
- ================================================================================
693
-
694
- FILE INFORMATION:
695
- ----------------------------------------
696
- Size: 513 B
697
- Extension: .sh
698
- Language: bash
699
- Location: start.sh
700
- Relative Path: root
701
- Created: 2025-09-08 06:46:28 (Etc/GMT+5 / GMT-05:00)
702
- Modified: 2025-09-08 06:46:32 (Etc/GMT+5 / GMT-05:00)
703
- MD5: 46cf828cf89073cc21b995fceb3e438b
704
- SHA256: 83f8f902f2bd85a2f554357c64d8e68bf639e1a8de2c09ef1bf06bf936ce4c33
705
- Encoding: ASCII
706
-
707
- FILE CONTENT:
708
- ----------------------------------------
709
- #!/usr/bin/env bash
710
- set -e
711
-
712
- # Make sure cache dirs exist and are writable at runtime
713
- mkdir -p "${HF_HOME:-/data/hf}" \
714
- "${HUGGINGFACE_HUB_CACHE:-/data/hf/hub}" \
715
- "${SENTENCE_TRANSFORMERS_HOME:-/data/hf/sentence-transformers}"
716
-
717
- # Best effort: open perms on /data (Space uses a non-root user sometimes)
718
- chmod -R 777 /data || true
719
-
720
- # Optional: reduce noise from deprecation warnings
721
- export PYTHONWARNINGS="ignore::FutureWarning"
722
-
723
- # Boot the API
724
- exec uvicorn app.main:api --host 0.0.0.0 --port 7860
725
-
726
- ================================================================================
727
-
728
-
729
  ================================================================================
730
  BINARY/EXCLUDED FILES (not included in text content)
731
  ================================================================================
 
5
  PROJECT INFORMATION:
6
  --------------------------------------------------
7
  Project Name: agentic-finlit-backend
8
+ Generated On: 2025-09-08 06:56:25 (Etc/GMT+5 / GMT-05:00)
9
+ Total Files Processed: 14
10
  Export Tool: Easy Whole Project to Single Text File for LLMs v1.1.0
11
  Tool Author: Jota / JosΓ© Guilherme Pandolfi
12
 
 
33
  β”‚ β”œβ”€β”€ πŸ“„ ingest.py (845 B)
34
  β”‚ β”œβ”€β”€ πŸ“„ main.py (2.65 KB)
35
  β”‚ └── πŸ“„ README.md (107 B)
36
+ β”œβ”€β”€ πŸ“„ Dockerfile (1011 B)
37
  β”œβ”€β”€ πŸ“„ elkay.txt
38
  β”œβ”€β”€ πŸ“„ git
39
  β”œβ”€β”€ πŸ“„ README.md (275 B)
40
+ └── πŸ“„ requirements.txt (345 B)
 
41
 
42
  ================================================================================
43
  PROJECT STATISTICS
44
  ================================================================================
45
+ Total Files: 14
46
  Total Directories: 2
47
+ Text Files: 12
48
  Binary Files: 2
49
+ Total Size: 14.44 KB
50
 
51
  FILE TYPES DISTRIBUTION:
52
  ------------------------------
 
54
  .md : 2
55
  no extension : 2
56
  .txt : 2
 
57
 
58
  ================================================================================
59
  FILE CODE CONTENTS
 
685
  ================================================================================
686
 
687
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
688
  ================================================================================
689
  BINARY/EXCLUDED FILES (not included in text content)
690
  ================================================================================
start.sh DELETED
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -e
3
-
4
- # Make sure cache dirs exist and are writable at runtime
5
- mkdir -p "${HF_HOME:-/data/hf}" \
6
- "${HUGGINGFACE_HUB_CACHE:-/data/hf/hub}" \
7
- "${SENTENCE_TRANSFORMERS_HOME:-/data/hf/sentence-transformers}"
8
-
9
- # Best effort: open perms on /data (Space uses a non-root user sometimes)
10
- chmod -R 777 /data || true
11
-
12
- # Optional: reduce noise from deprecation warnings
13
- export PYTHONWARNINGS="ignore::FutureWarning"
14
-
15
- # Boot the API
16
- exec uvicorn app.main:api --host 0.0.0.0 --port 7860