(self, content: str)
| 65 | ) |
| 66 | |
| 67 | def _save_dockerfile(self, content: str) -> None: |
| 68 | if os.path.exists('./Dockerfile'): |
| 69 | os.remove('./Dockerfile') |
| 70 | with open('./Dockerfile', 'w') as f: |
| 71 | f.write(content) |
| 72 | |
| 73 | def run_cmd(self, *args: str) -> int: |
| 74 | """Run a shell command safely via subprocess (no shell=True). |