mirror of
https://github.com/trustedsec/hate_crack.git
synced 2026-03-12 21:23:05 -07:00
Fix Docker build to use absolute Dockerfile path
Co-authored-by: bandrel <3598052+bandrel@users.noreply.github.com>
This commit is contained in:
@@ -18,10 +18,11 @@ def docker_image():
|
||||
_require_docker()
|
||||
repo_root = Path(__file__).resolve().parents[1]
|
||||
image_tag = "hate-crack-e2e"
|
||||
dockerfile_path = repo_root / "Dockerfile.test"
|
||||
|
||||
try:
|
||||
build = subprocess.run(
|
||||
["docker", "build", "-f", "Dockerfile.test", "-t", image_tag, str(repo_root)],
|
||||
["docker", "build", "-f", str(dockerfile_path), "-t", image_tag, str(repo_root)],
|
||||
capture_output=True,
|
||||
text=True,
|
||||
timeout=600,
|
||||
|
||||
Reference in New Issue
Block a user