xteamki commited on
Commit
b4bcd3f
·
verified ·
1 Parent(s): 7e87c2e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan image dasar Python yang Anda inginkan
2
+ FROM python:3.13-slim
3
+
4
+ # Setel direktori kerja
5
+ WORKDIR /app
6
+
7
+ # Salin file requirements.txt dan instal dependensi
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Salin aplikasi Anda
12
+ COPY . .
13
+
14
+ # Perintah untuk menjalankan aplikasi Anda
15
+ CMD ["python", "app.py"]