oriqqqqqqat commited on
Commit
98c1616
·
1 Parent(s): f603a4b
Files changed (2) hide show
  1. Dockerfile +5 -8
  2. requirements.txt +0 -0
Dockerfile CHANGED
@@ -1,19 +1,16 @@
1
- # ใช้ Python 3.10
2
  FROM python:3.10
3
 
4
- # สร้างโฟลเดอร์ทำงาน
5
  WORKDIR /code
6
 
7
- # ก๊อปปี้รายชื่อ library ไปลง
 
 
 
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
- # สั่งติดตั้ง library
11
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
12
 
13
- # ก๊อปปี้ไฟล์โค้ดทั้งหมด (main.py, รูปภาพ, ฯลฯ) ไปลง
14
  COPY . .
15
 
16
- # *** คำสั่งรัน FastAPI ***
17
- # main:app หมายถึง ไฟล์ main.py และตัวแปร app = FastAPI()
18
- # host 0.0.0.0 และ port 7860 คือข้อบังคับของ Hugging Face
19
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  FROM python:3.10
2
 
 
3
  WORKDIR /code
4
 
5
+ # --- เพิ่มท่อนนี้เข้าไปครับ ---
6
+ # สั่ง update linux และลง libgl1
7
+ RUN apt-get update && apt-get install -y libgl1
8
+ # -------------------------
9
+
10
  COPY ./requirements.txt /code/requirements.txt
11
 
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
 
14
  COPY . .
15
 
 
 
 
16
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
requirements.txt CHANGED
Binary files a/requirements.txt and b/requirements.txt differ