Game port, game loop, Selenium adapter and Chromium factory with fake-driver tests, command-line options for duration, headless mode and screenshots, and the screenshots of lecture steps 1 and 2 taken in the Docker container. Code review RC-015. Closes #14 Closes #15 Closes #16 Closes #17 Task: MIL-003#1 Task: MIL-003#2 Task: MIL-003#3 Task: MIL-003#4
21 lines
616 B
Docker
21 lines
616 B
Docker
# Headless Chromium for real-browser runs and screenshots (ADR-0003).
|
|
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1 \
|
|
PYTHONUNBUFFERED=1 \
|
|
CHROME_BIN=/usr/bin/chromium \
|
|
CHROMEDRIVER_PATH=/usr/bin/chromedriver
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends chromium chromium-driver fonts-liberation \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml README.md LICENSE ./
|
|
COPY src ./src
|
|
RUN python -m pip install --upgrade pip && python -m pip install -e ".[dev]"
|
|
COPY tests ./tests
|
|
|
|
ENTRYPOINT ["python", "-m", "cookie_clicker_bot"]
|
|
CMD ["--headless"]
|