webscreenshot/Dockerfile

22 lines
466 B
Docker

FROM python:3.12-slim
# Systemabhängigkeiten
RUN apt-get update && apt-get install -y wget gnupg curl libjpeg62-turbo libpng16-16 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt \
&& playwright install --with-deps chromium
COPY app/ .
ENV SCALE=0.5
ENV OUTPUT_DIR=/output
ENV INTERVAL_MINUTES=5
ENV URLS_FILE=/app/urls.csv
VOLUME ["/output"]
CMD ["python", "webscreenshot.py"]