Maulidaaa commited on
Commit
0ef6d1b
·
1 Parent(s): da3a2d2

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +27 -0
Dockerfile ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan Python image
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ python3-dev \
8
+ libglib2.0-0 \
9
+ libsm6 \
10
+ libxext6 \
11
+ libxrender-dev \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ # Set working directory
15
+ WORKDIR /app
16
+
17
+ # Copy files
18
+ COPY . /app
19
+
20
+ # Install Python dependencies
21
+ RUN pip install --upgrade pip
22
+ RUN pip install -r requirements.txt
23
+
24
+ # Jalankan Flask server
25
+ ENV FLASK_APP=app.py
26
+ ENV FLASK_RUN_HOST=0.0.0.0
27
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]