Skip to content

Python scraper based on AI

Clean up cache files to reduce Docker image size

Peter Dave Hello4a0872bec053
diff --git a/Dockerfile b/Dockerfile
index a04c8551..a5f71732 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,9 +1,9 @@
FROM python:3.11-slim
-RUN apt-get update && apt-get upgrade -y
+RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
-RUN pip install scrapegraphai
-RUN pip install scrapegraphai[burr]
+RUN pip install --no-cache-dir scrapegraphai
+RUN pip install --no-cache-dir scrapegraphai[burr]
RUN python3 -m playwright install-deps
RUN python3 -m playwright install
\ No newline at end of file