HemanthR007 commited on
Commit
bf486e6
·
verified ·
1 Parent(s): 2be5f28

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
3
+ # Install system dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ git \
6
+ git-lfs \
7
+ ffmpeg \
8
+ libsm6 \
9
+ libxext6 \
10
+ cmake \
11
+ rsync \
12
+ libgl1 \
13
+ && rm -rf /var/lib/apt/lists/*
14
+
15
+ # Enable Git LFS
16
+ RUN git lfs install
17
+
18
+ # Set workdir
19
+ WORKDIR /app
20
+
21
+ # Install Python dependencies
22
+ COPY requirements.txt .
23
+ RUN pip install --no-cache-dir -r requirements.txt
24
+
25
+ # Copy app
26
+ COPY . .
27
+
28
+ # Expose port (FastAPI default)
29
+ EXPOSE 7860
30
+
31
+ # Run FastAPI with Uvicorn
32
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]