File size: 806 Bytes
73aaf85 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
FROM python:3.10
# Chrome ve ChromeDriver kurulumu
RUN apt-get update && apt-get install -y \
wget \
gnupg2 \
apt-transport-https \
ca-certificates
# Chrome repository ekleme
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
# Chrome ve ChromeDriver kurulumu
RUN apt-get update && apt-get install -y \
google-chrome-stable \
chromium-chromedriver
# Çalışma dizinini ayarlama
WORKDIR /code
# Gerekli Python paketlerini kurma
COPY requirements.txt /code/
RUN pip install --no-cache-dir -r requirements.txt
# Uygulama kodlarını kopyalama
COPY . /code/
# Gradio uygulamasını başlatma
CMD ["python", "gradio.py"] |