web_scraping / Dockerfile
dina1's picture
Update Dockerfile
80de091 verified
raw
history blame contribute delete
650 Bytes
FROM python:3.11-slim
# Install system dependencies required by Chromium
RUN apt-get update && apt-get install -y \
libatk-bridge2.0-0 \
libatk1.0-0 \
libcups2 \
libdrm2 \
libxkbcommon0 \
libxcomposite1 \
libxdamage1 \
libxrandr2 \
libgbm1 \
libasound2 \
libnss3 \
libxshmfence1 \
libxfixes3 \
wget \
ca-certificates \
fonts-liberation \
&& rm -rf /var/lib/apt/lists/*
# Install Python dependencies
RUN pip install --no-cache-dir playwright pandas
# Install Playwright Chromium
RUN playwright install chromium
WORKDIR /app
COPY . /app
CMD ["python", "shoalhaven_da_scraper.py"]