From ec3354b56943cf99490a7757a211ccbb76cdb675 Mon Sep 17 00:00:00 2001 From: fzorb Date: Sun, 25 May 2025 19:27:27 +0300 Subject: [PATCH] docker stuff :3 --- Dockerfile | 6 ++++++ compose.yml | 8 ++++++++ 2 files changed, 14 insertions(+) create mode 100644 Dockerfile create mode 100644 compose.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e613ba8 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:3.13-slim +WORKDIR /scraper +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt +COPY . . +CMD ["python", "scrape.py"] diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..70f3025 --- /dev/null +++ b/compose.yml @@ -0,0 +1,8 @@ +version: '3.8' + +services: + prntscrape: + build: . + volumes: + - ./config.json:/scraper/config.json + restart: always