veteroner commited on
Commit
abd7c7a
·
1 Parent(s): 3bff20f

fix: add root Dockerfile and HF metadata for HuggingFace Space deployment

Browse files

HF Spaces expects Dockerfile and README metadata at repo root.
Root Dockerfile copies from huggingface-space/ subdirectory.

Files changed (2) hide show
  1. Dockerfile +22 -0
  2. README.md +10 -0
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Install system dependencies
6
+ RUN apt-get update && apt-get install -y \
7
+ build-essential \
8
+ curl \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # Copy only the HuggingFace Space files
12
+ COPY huggingface-space/requirements.txt .
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # Copy application code from huggingface-space subdirectory
16
+ COPY huggingface-space/ .
17
+
18
+ # Expose port for Hugging Face
19
+ EXPOSE 7860
20
+
21
+ # Run FastAPI with uvicorn
22
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
README.md CHANGED
@@ -1,3 +1,13 @@
 
 
 
 
 
 
 
 
 
 
1
  # BIST Analiz - Next.js Uygulaması
2
 
3
  Modern, performanslı borsa analiz platformu - Next.js 14, Supabase ve TypeScript ile geliştirildi.
 
1
+ ---
2
+ title: Borsa ML API
3
+ emoji: 📈
4
+ colorFrom: blue
5
+ colorTo: green
6
+ sdk: docker
7
+ pinned: false
8
+ license: mit
9
+ ---
10
+
11
  # BIST Analiz - Next.js Uygulaması
12
 
13
  Modern, performanslı borsa analiz platformu - Next.js 14, Supabase ve TypeScript ile geliştirildi.