Dockerfile with Chromium, capture_steps module, Chrome environment support, stale-element retries, owned-amount purchase check, the five screenshots from a 300 second run (16.6 cookies per second) and the README from the framework template. Reviewed in RC-013. Task: MIL-004#1 Task: MIL-004#2 Task: MIL-004#3 Task: MIL-004#4 Task: MIL-004#5 Closes #19 Closes #20 Closes #21 Closes #22 Closes #23
26 lines
714 B
Docker
26 lines
714 B
Docker
# Headless Chromium for the Cookie Clicker bot. GUI runs never use the host desktop.
|
|
FROM python:3.13-slim-bookworm
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends chromium chromium-driver fonts-liberation \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ENV CHROME_BIN=/usr/bin/chromium \
|
|
CHROMEDRIVER=/usr/bin/chromedriver \
|
|
PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml README.md LICENSE ./
|
|
COPY src ./src
|
|
RUN python -m pip install --upgrade pip \
|
|
&& python -m pip install .
|
|
|
|
RUN useradd --create-home bot \
|
|
&& mkdir /runs \
|
|
&& chown bot /runs
|
|
USER bot
|
|
|
|
VOLUME ["/runs"]
|
|
ENTRYPOINT ["python", "-m", "cookie_clicker_bot.presentation.capture_steps"]
|
|
CMD ["--out", "/runs"]
|