enesmanan commited on
Commit
73aaf85
·
verified ·
1 Parent(s): 2667fe6

Create Dockerfile

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