quantumbit commited on
Commit
e70b4e0
·
verified ·
1 Parent(s): 64cd0b0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +26 -0
Dockerfile CHANGED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install dependencies for Chrome + Selenium
5
+ RUN apt-get update && apt-get install -y \
6
+ wget gnupg unzip curl \
7
+ chromium chromium-driver \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ # Set env vars so Selenium finds Chrome
11
+ ENV CHROME_BIN=/usr/bin/chromium
12
+ ENV CHROMEDRIVER=/usr/bin/chromedriver
13
+
14
+ # Install Python deps
15
+ COPY requirements.txt requirements.txt
16
+ RUN pip install --no-cache-dir -r requirements.txt
17
+
18
+ # Copy app
19
+ COPY app.py /app/app.py
20
+ WORKDIR /app
21
+
22
+ # Expose port (HF expects 7860)
23
+ EXPOSE 7860
24
+
25
+ # Run Flask
26
+ CMD ["python", "app.py"]