Implements Feature to cleanup authors freetext field

This commit is contained in:
quorploop 2025-12-21 21:18:05 +01:00
parent bcd210ce01
commit 64df8fb328
14 changed files with 804 additions and 310 deletions

29
scrape/Dockerfile Normal file
View file

@ -0,0 +1,29 @@
FROM python:slim
RUN mkdir /app
RUN mkdir /data
#COPY /data/knack.sqlite /data
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY .env .
RUN apt update -y
RUN apt install -y cron locales
COPY main.py .
ENV PYTHONUNBUFFERED=1
ENV LANG=de_DE.UTF-8
ENV LC_ALL=de_DE.UTF-8
# Create cron job that runs every 15 minutes with environment variables
RUN echo "5 4 * * * cd /app && /usr/local/bin/python main.py >> /proc/1/fd/1 2>&1" > /etc/cron.d/knack-scraper
RUN chmod 0644 /etc/cron.d/knack-scraper
RUN crontab /etc/cron.d/knack-scraper
# Start cron in foreground
CMD ["cron", "-f"]