Spaces:
Paused
Paused
| # ပေါ့ပါးတဲ့ Python image ကို သုံးပြီး server အဖြစ် သုံးပါမယ် | |
| FROM python:3.9-slim | |
| # Git သွင်းမယ် | |
| RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Repo ကို clone ဖတ်မယ် | |
| RUN git clone https://github.com/justlovemaki/AIClient-2-API.git . | |
| # Port သတ်မှတ်မယ် | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Static files တွေရှိတဲ့ 'static' folder ထဲကို ပြောင်းပြီး | |
| # Python ရဲ့ built-in http server နဲ့ port 7860 မှာ run ပါမယ် | |
| CMD ["sh", "-c", "cd static && python3 -m http.server 7860"] | |