rataluas67 commited on
Commit
3d6201a
·
verified ·
1 Parent(s): d8f8eff

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install bash agar terminal (pty) bisa berjalan dengan baik
4
+ RUN apt-get update && apt-get install -y bash && rm -rf /var/lib/apt/lists/*
5
+
6
+ WORKDIR /app
7
+
8
+ # Salin file requirements.txt dan install dependensinya
9
+ COPY requirements.txt .
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Salin skrip utama
13
+ COPY app.py .
14
+
15
+ # Jalankan skrip Python
16
+ CMD ["python", "app.py"]