Commit
β’
96b9c70
1
Parent(s):
9ccb5d3
Create Dockerfile
Browse files- 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"]
|