monyet / Dockerfile
bunnybun07's picture
Update Dockerfile
294ef14 verified
raw
history blame contribute delete
504 Bytes
# 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"]