From ed63813b2923c988029a525ae65b3cfd698c8159 Mon Sep 17 00:00:00 2001 From: inputnoise Date: Wed, 12 Nov 2025 01:20:00 +0100 Subject: [PATCH] =?UTF-8?q?f=C3=B6r=20att=20man=20inte=20kan=20ladda=20upp?= =?UTF-8?q?=20flerigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dockerfile diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..0b5d549 --- /dev/null +++ b/dockerfile @@ -0,0 +1,20 @@ +FROM python:3.11-slim + +# Install Chrome and dependencies +RUN apt-get update && \ + apt-get install -y wget gnupg2 && \ + wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add - && \ + echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \ + apt-get update && \ + apt-get install -y google-chrome-stable chromium-driver && \ + apt-get clean + +# Install Python dependencies +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt + +# Copy your crawler code +COPY . /app +WORKDIR /app + +CMD ["python3", "crawler.py"] \ No newline at end of file