ArsanForEver commited on
Commit
8e0b3a2
·
verified ·
1 Parent(s): 5c18501

Create Dockerfile

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.9
3
+
4
+ # Set direktori kerja
5
+ WORKDIR /app
6
+
7
+ # Salin semua file ke container
8
+ COPY . .
9
+
10
+ # Install dependencies
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # Jalankan aplikasi FastAPI menggunakan Uvicorn
14
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]