LogicGoInfotechSpaces commited on
Commit
355d881
·
verified ·
1 Parent(s): 35ef76f

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ------------ Base Image ------------
2
+ FROM python:3.11-slim
3
+
4
+ # ------------ Work Directory ------------
5
+ WORKDIR /app
6
+
7
+ # ------------ Install System Deps ------------
8
+ RUN apt-get update && apt-get install -y \
9
+ gcc \
10
+ libffi-dev \
11
+ && rm -rf /var/lib/apt/lists/*
12
+
13
+ # ------------ Copy Project ------------
14
+ COPY . /app
15
+
16
+ # ------------ Install Python Deps ------------
17
+ RUN pip install --no-cache-dir -r requirements.txt
18
+
19
+ # HuggingFace expects the app on port 7860
20
+ ENV PORT=7860
21
+
22
+ EXPOSE 7860
23
+
24
+ # ------------ Start FastAPI Server ------------
25
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]