dina1 commited on
Commit
b25bb1f
·
verified ·
1 Parent(s): 062a9ec

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # Install system dependencies required by Chromium
4
+ RUN apt-get update && apt-get install -y \
5
+ libatk-bridge2.0-0 \
6
+ libatk1.0-0 \
7
+ libcups2 \
8
+ libdrm2 \
9
+ libxkbcommon0 \
10
+ libxcomposite1 \
11
+ libxdamage1 \
12
+ libxrandr2 \
13
+ libgbm1 \
14
+ libasound2 \
15
+ libnss3 \
16
+ libxshmfence1 \
17
+ wget \
18
+ ca-certificates \
19
+ fonts-liberation \
20
+ && rm -rf /var/lib/apt/lists/*
21
+
22
+ # Install Python dependencies
23
+ RUN pip install --no-cache-dir playwright pandas
24
+
25
+ # Install Playwright Chromium
26
+ RUN playwright install chromium
27
+
28
+ WORKDIR /app
29
+
30
+ COPY . /app
31
+
32
+ # Run scraper on container start
33
+ CMD ["python", "shoalhaven_da_scraper.py"]