sinhal commited on
Commit
3e88a61
·
verified ·
1 Parent(s): b41053e

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +24 -0
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ # Install system build tools
4
+ RUN apt-get update && apt-get install -y \
5
+ build-essential \
6
+ cmake \
7
+ curl \
8
+ git \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ WORKDIR /code
12
+
13
+ # Copy requirements and install
14
+ COPY requirements.txt /code/requirements.txt
15
+ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
16
+
17
+ # Copy application files
18
+ COPY . /code
19
+
20
+ # Expose HF Space port
21
+ EXPOSE 7860
22
+
23
+ # Start server
24
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", 7860]