Stefaron commited on
Commit
f1037c7
·
verified ·
1 Parent(s): befbdb3

Initials commit

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan image Python
2
+ FROM python:3.10
3
+
4
+ # Set direktori kerja
5
+ WORKDIR /app
6
+
7
+ # Salin semua file ke dalam container
8
+ COPY . /app/
9
+
10
+ # Install dependensi
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Jalankan API dengan Uvicorn
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]