Wilsonnnnn30 commited on
Commit
bb6d950
Β·
verified Β·
1 Parent(s): 8e7467b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +12 -28
Dockerfile CHANGED
@@ -1,28 +1,12 @@
1
- FROM python:3.10
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt .
6
- RUN pip install --no-cache-dir -r requirements.txt
7
-
8
- COPY . .
9
-
10
- EXPOSE 7860
11
-
12
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]
13
- ```
14
-
15
- > ⚠️ Hugging Face Spaces menggunakan **port 7860**, bukan 8000!
16
-
17
- ---
18
-
19
- ## 2. Struktur Folder yang Diupload
20
- ```
21
- πŸ“ project/
22
- β”œβ”€β”€ api.py
23
- β”œβ”€β”€ Dockerfile
24
- β”œβ”€β”€ README.md
25
- β”œβ”€β”€ requirements.txt
26
- β”œβ”€β”€ data/
27
- β”‚ └── profile.md
28
- └── chroma_db_wilson/
 
1
+ FROM python:3.10
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt .
6
+ RUN pip install --no-cache-dir -r requirements.txt
7
+
8
+ COPY . .
9
+
10
+ EXPOSE 7860
11
+
12
+ CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"]