24 lines
814 B
Docker
24 lines
814 B
Docker
FROM python:3.12-slim
|
|
|
|
# Chrome via Google-Repo (stabile Alternative zu Distro-Paketen)
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
wget gnupg ca-certificates curl unzip \
|
|
libglib2.0-0 libnss3 libatk1.0-0 libatk-bridge2.0-0 \
|
|
libcups2 libdbus-1-3 libdrm2 libxkbcommon0 libxcomposite1 \
|
|
libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Chrome installieren
|
|
RUN wget -q -O /tmp/chrome.deb \
|
|
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
|
|
&& apt-get update && apt-get install -y /tmp/chrome.deb \
|
|
&& rm /tmp/chrome.deb && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY src/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY src/ ./src/
|
|
|
|
CMD ["python", "src/agent.py"]
|