enesmanan's picture
Create Dockerfile
73aaf85 verified
raw
history blame contribute delete
806 Bytes
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"]