Initial commit. v1 of the script
This commit is contained in:
commit
4795524b27
7 changed files with 251 additions and 0 deletions
22
Dockerfile
Normal file
22
Dockerfile
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue