HemanthR007 commited on
Commit
6f5bc8a
·
verified ·
1 Parent(s): bf486e6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -23
Dockerfile CHANGED
@@ -1,6 +1,3 @@
1
- FROM python:3.10
2
-
3
- # Install system dependencies
4
  RUN apt-get update && apt-get install -y \
5
  git \
6
  git-lfs \
@@ -10,23 +7,5 @@ RUN apt-get update && apt-get install -y \
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"]
 
 
 
 
1
  RUN apt-get update && apt-get install -y \
2
  git \
3
  git-lfs \
 
7
  cmake \
8
  rsync \
9
  libgl1 \
10
+ && rm -rf /var/lib/apt/lists/* \
11
+ && git lfs install