File size: 712 Bytes
4254b58
 
7ed5c08
42b2347
4254b58
37b77b1
 
 
4254b58
4326fd7
37b77b1
4326fd7
 
 
b70f1b7
4254b58
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# ပေါ့ပါးတဲ့ 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"]