File size: 504 Bytes
294ef14
 
31b8277
294ef14
 
31b8277
294ef14
 
31b8277
294ef14
 
 
 
 
31b8277
294ef14
 
31b8277
294ef14
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Gunakan image Python 3.8 (sesuai requirement Turnstile-Solver)
FROM python:3.8-slim

# Bekerja di folder /app
WORKDIR /app

# Copy semua file kode & config
COPY . .

# Upgrade pip lalu install dependencies
RUN pip install --upgrade pip \
 && pip install -r requirements.txt \
 # Install Chromium headless via patchright
 && python -m patchright install chromium

# Expose port yang dipakai FastAPI
EXPOSE 8000

# Jalankan Uvicorn
CMD ["uvicorn", "tenbin2api:app", "--host", "0.0.0.0", "--port", "8000"]