MINZO4546 commited on
Commit
db3f7fb
·
verified ·
1 Parent(s): 5da0ddf

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -11
Dockerfile CHANGED
@@ -1,21 +1,23 @@
1
- # Python සහ CUDA සහිතදනමක භාවිත ිරීම
2
  FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
3
 
4
- # Python ස්ථා
5
- RUN apt-get update && apt-get install -y python3-pip python3-dev
 
 
 
 
 
 
6
 
7
- # වැඩ කරන ස්ථානය සැකසීම
8
  WORKDIR /app
9
 
10
- # Requirements copy කර ස්ථපනය කිරීම
11
  COPY requirements.txt .
12
  RUN pip3 install --no-cache-dir -r requirements.txt
13
 
14
- # සියලුcode ගොනු copy කිරීම
15
  COPY . .
16
 
17
- # FastAPI port එක විවෘත කිරීම
18
- EXPOSE 7860
19
-
20
- # Server එක පණ ගැන්වීම
21
- CMD ["uvicorn", "app:main", "--host", "0.0.0.0", "--port", "7860"]
 
1
+ # CUDA base image එකාවිච්චි කරු (NVIDIA Runtime එබුණ අපට CPU එකෙන් න් කරන්න පුළුවන්)
2
  FROM nvidia/cuda:12.1.0-runtime-ubuntu22.04
3
 
4
+ # 🔱ද්ධතිට අවශ්‍ය කරන Build Tools සහ Python install කිරීම
5
+ RUN apt-get update && apt-get install -y \
6
+ python3-pip \
7
+ python3-dev \
8
+ cmake \
9
+ ninja-build \
10
+ build-essential \
11
+ && rm -rf /var/lib/apt/lists/*
12
 
 
13
  WORKDIR /app
14
 
15
+ # Requirements copy කරinstall කිරීම
16
  COPY requirements.txt .
17
  RUN pip3 install --no-cache-dir -r requirements.txt
18
 
19
+ # සම්පූර්ණ Project එක copy කිරීම
20
  COPY . .
21
 
22
+ # Inachi AI Backend එක පණ ගැන්වීම
23
+ CMD ["python3", "app.py"]