CoolFace
Apppublic

Nattiruth/HWPD-Line-webhook

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
Dockerfile20 linesDownload Raw Back to root
1# ใช้ Python เวอร์ชันที่เล็กและเบาที่สุด2FROM python:3.10-slim3 4# ตั้งค่า Directory หลักในการทำงาน5WORKDIR /app6 7# คัดลอกไฟล์ requirements.txt ไปก่อนเพื่อใช้ประโยชน์จาก Docker Cache8COPY requirements.txt .9 10# ติดตั้งไลบรารีพื้นฐาน (แบบไม่เก็บแคชให้หนักเครื่อง)11RUN pip install --no-cache-dir -r requirements.txt12 13# คัดลอกซอร์สโค้ดทั้งหมด (main.py) เข้าไปใน Container14COPY . .15 16# เปิดพอร์ต 7860 สำหรับ Hugging Face Space17EXPOSE 786018 19# คำสั่งสตาร์ทเซิร์ฟเวอร์20CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]