Demos (Gruppe D): Image cb-web, Aufgaben d-10 Snake, d-11 Sonnensystem, d-12 Highscore auf eigener Lösung, Browser-Prüfung mit Screenshot und Checkliste, Aufgaben mit depends_on
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
20
images/cb-web/Containerfile
Normal file
20
images/cb-web/Containerfile
Normal file
@ -0,0 +1,20 @@
|
||||
# cb-web: Python 3 mit Playwright und Chromium für die Demo-Aufgaben (Gruppe D).
|
||||
# Bauen: podman build -t cb-web:latest images/cb-web
|
||||
# Die Seite des Modells wird in der Prüfung im Browser geöffnet, ohne Netz.
|
||||
FROM docker.io/library/python:3.12-slim
|
||||
|
||||
ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright \
|
||||
PYTHONDONTWRITEBYTECODE=1 \
|
||||
PYTHONPATH=/opt/cb \
|
||||
HOME=/tmp
|
||||
|
||||
RUN pip install --no-cache-dir playwright \
|
||||
&& playwright install --with-deps chromium \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& mkdir -p /work /opt/cb \
|
||||
&& chmod -R a+rX /ms-playwright
|
||||
|
||||
# Gemeinsame Hilfen für die Prüfungen der Demo-Aufgaben.
|
||||
COPY webcheck.py snakecheck.py /opt/cb/
|
||||
|
||||
WORKDIR /work
|
||||
Reference in New Issue
Block a user