v12-worker-template / Dockerfile
CSRumblewMerkez's picture
Create Dockerfile
14a52e4 verified
Raw History Blame Contribute Delete
592 Bytes
FROM python:3.10-slim
# Linux icerisine Selenium'un kararlı uyanması icin resmi Google Chrome tarayıcısını ve suruculerini kuruyoruz
RUN apt-get update && apt-get install -y \
wget \
gnupg \
unzip \
curl \
chromium \
chromium-driver \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
EXPOSE 7860
# Unsleeping ve 10 ekranlı Isci bot web API katmanını es zamanlı uykudan uyandıran dev Linux zırhı!
CMD python3 unsleeping.py & uvicorn app:app --host 0.0.0.0 --port 7860