Al-Fathir commited on
Commit
248c160
·
1 Parent(s): 18d060d

feat : init for prod

Browse files
Files changed (3) hide show
  1. Dockerfile +16 -0
  2. main.py → app.py +0 -0
  3. requirements.txt +56 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
2
+ # you will also find guides on how best to write your Dockerfile
3
+
4
+ FROM python:3.9
5
+
6
+ RUN useradd -m -u 1000 user
7
+ USER user
8
+ ENV PATH="/home/user/.local/bin:$PATH"
9
+
10
+ WORKDIR /app
11
+
12
+ COPY --chown=user ./requirements.txt requirements.txt
13
+ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
+
15
+ COPY --chown=user . /app
16
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
main.py → app.py RENAMED
File without changes
requirements.txt ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ annotated-doc==0.0.3
2
+ annotated-types==0.7.0
3
+ anyio==4.11.0
4
+ babel==2.17.0
5
+ beautifulsoup4==4.14.2
6
+ bibtexparser==1.4.3
7
+ bs4==0.0.2
8
+ cachetools==6.2.1
9
+ certifi==2025.10.5
10
+ charset-normalizer==3.4.4
11
+ click==8.3.0
12
+ colorama==0.4.6
13
+ courlan==1.3.2
14
+ cssselect==1.3.0
15
+ dateparser==1.2.2
16
+ extruct==0.18.0
17
+ fastapi==0.120.2
18
+ goose3==3.1.20
19
+ h11==0.16.0
20
+ html-text==0.7.1
21
+ html5lib==1.1
22
+ htmldate==1.9.3
23
+ httpcore==1.0.9
24
+ httpx==0.28.1
25
+ idna==3.11
26
+ jstyleson==0.0.2
27
+ jusText==3.0.2
28
+ langdetect==1.0.9
29
+ lxml==5.4.0
30
+ lxml_html_clean==0.4.3
31
+ mf2py==2.0.1
32
+ pillow==12.0.0
33
+ pyahocorasick==2.2.0
34
+ pydantic==2.12.3
35
+ pydantic-settings==2.11.0
36
+ pydantic_core==2.41.4
37
+ pyparsing==3.2.5
38
+ pyRdfa3==3.6.4
39
+ python-dateutil==2.9.0.post0
40
+ python-dotenv==1.2.1
41
+ pytz==2025.2
42
+ rdflib==7.3.0
43
+ regex==2025.10.23
44
+ requests==2.32.5
45
+ six==1.17.0
46
+ sniffio==1.3.1
47
+ soupsieve==2.8
48
+ starlette==0.49.1
49
+ tld==0.13.1
50
+ typing-inspection==0.4.2
51
+ typing_extensions==4.15.0
52
+ tzdata==2025.2
53
+ tzlocal==5.3.1
54
+ urllib3==2.5.0
55
+ uvicorn==0.38.0
56
+ webencodings==0.5.1