Iqbaljanitra commited on
Commit
96b9c70
β€’
1 Parent(s): 9ccb5d3

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10.10
2
+
3
+ WORKDIR /app
4
+
5
+ COPY requirements.txt requirements.txt
6
+ RUN pip install -r requirements.txt
7
+
8
+ # Step 4: Salin semua file aplikasi ke dalam kontainer
9
+ COPY
10
+ β”œβ”€β”€ app.py # File utama aplikasi Flask
11
+ β”œβ”€β”€ requirements.txt # File requirements untuk dependencies
12
+ β”œβ”€β”€ templates/ # Direktori untuk menyimpan template HTML
13
+ └── index.html
14
+
15
+ CMD ["python", "app.py"]