File size: 433 Bytes
6490a0d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Gunakan Python versi ringan
FROM python:3.10-slim

# Buat folder kerja di dalam server
WORKDIR /app

# Copy daftar library dan install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Copy seluruh file proyekmu (kecuali .env)
COPY . .

# Hugging Face wajib menggunakan port 7860
EXPOSE 7860

# Perintah untuk menjalankan Flask
ENV FLASK_APP=app.py
CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]