bunnybun07 commited on
Commit
31b8277
·
verified ·
1 Parent(s): da9c76e

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Gunakan image Python 3.8 (sesuai requirement Turnstile-Solver)
2
+ FROM python:3.8-slim
3
+
4
+ # Bekerja di folder /app
5
+ WORKDIR /app
6
+
7
+ # Copy semua file kode & config
8
+ COPY . .
9
+
10
+ # Upgrade pip lalu install dependencies
11
+ RUN pip install --upgrade pip \
12
+ && pip install -r requirements.txt \
13
+ # Install Chromium headless via patchright
14
+ && python -m patchright install chromium
15
+
16
+ # Expose port yang dipakai FastAPI
17
+ EXPOSE 8000
18
+
19
+ # Jalankan Uvicorn
20
+ CMD ["uvicorn", "tenbin2api:app", "--host", "0.0.0.0", "--port", "8000"]