Files
Tirsvad 42cd1ced36
TirSystem/git-workflows: CI / secret-scan (push) Skipped
TirSystem/git-workflows: CI / validate (push) Skipped
TirSystem/git-workflows: CI / opengrep (push) Skipped
TirSystem/git-workflows: CI / release-check (push) Skipped
TirSystem/git-workflows: Publish wiki / publish-wiki (push) Skipped
TirSystem/git-workflows: Release / release (push) Skipped
TirSystem/git-workflows: Sync GitHub mirror metadata / sync-metadata (push) Skipped
TirSystem/git-workflows: Publish accepted milestones / publish (push) Skipped
TirSystem/git-workflows: Validate / validate (push) Skipped
TirSystem/git-workflows: CI / secret-scan (pull_request) Successful in 10s
Tests / test (pull_request) Successful in 39s
TirSystem/git-workflows: Release / release (pull_request) Successful in 7s
TirSystem/git-workflows: Validate / validate (pull_request) Successful in 20s
TirSystem/git-workflows: OpenGrep / opengrep (pull_request) Successful in 58s
TirSystem/git-workflows: CI / validate (pull_request) Successful in 19s
TirSystem/git-workflows: CI / release-check (pull_request) Successful in 6s
TirSystem/git-workflows: CI / opengrep (pull_request) Successful in 55s
Fix the findings of the CI scan: no list change while iterating, pinned base image
Task: MIL-002#6
2026-11-21 18:07:03 +08:00

14 lines
584 B
Docker

# Isolated environment for the screenshots and the GUI tests: a virtual display,
# so the game never opens on the host desktop.
FROM python:3.14-slim@sha256:9aaa474097d094040649f2162a627c0049b408f52138d980916788d80f04802f
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
python3-tk tk xvfb xauth xdotool imagemagick x11-utils \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --no-cache-dir pytest==8.4.2
RUN useradd --create-home --uid 1000 shots
WORKDIR /work
USER shots
ENTRYPOINT ["bash", "/work/tools/take-screenshot.sh"]