# Local test image, built from web-security-platform/scanner/Dockerfile.
# Its base image is digest-pinned there, so this tag's content is
# determined by that digest (not by whatever the tag points at).
FROM wsa-scanner-local-base:1.0.0
USER root
RUN mkdir /state && chown 10001:10001 /state
COPY --chown=10001:10001 tests/__init__.py tests/fixture_service.py tests/local_test_service.py tests/local_test_relay.py ./tests/
USER 10001:10001
ENTRYPOINT ["python", "-m", "tests.local_test_service"]
