usmanyousaf commited on
Commit
aa9ef61
·
verified ·
1 Parent(s): 08fcc8b

Create apt.txt

Browse files
Files changed (1) hide show
  1. apt.txt +29 -0
apt.txt ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.9-slim
2
+
3
+ # Install Chrome dependencies
4
+ RUN apt-get update && apt-get install -y \
5
+ chromium-driver \
6
+ chromium-browser \
7
+ libnss3 \
8
+ libgconf-2-4 \
9
+ libxss1 \
10
+ libappindicator1 \
11
+ fonts-liberation \
12
+ libasound2 \
13
+ xdg-utils \
14
+ libgbm1 \
15
+ --no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/*
16
+
17
+ # Set Chrome as default for Selenium
18
+ ENV CHROME_BIN=/usr/bin/chromium
19
+ ENV CHROME_DRIVER=/usr/bin/chromedriver
20
+
21
+ # Install required Python libraries
22
+ COPY requirements.txt .
23
+ RUN pip install -r requirements.txt
24
+
25
+ # Copy application files
26
+ COPY . /app
27
+ WORKDIR /app
28
+
29
+ CMD ["streamlit", "run", "app.py"]