from pathlib import Path from docktoranalyzer.dockerfile.dockerfile_instructions import ( DockerInstruction, ) # TODO: Make DockerStage have a DockerFS class DockerStage: """_summary_ Class that holds a Build Stage """ def __init__(self, instructions: list[DockerInstruction]): self.commands: list[DockerInstruction] = [] self.commands = instructions class DockerFS: """_summary_ Class to take map file instructions """ def __init__(self, last_build_stage: DockerStage): pass class Dockerfile: """_summary_ Class holding a representation of Dockerfile """ def __init__(self, build_stages: list[DockerStage]): self.stages: list[DockerStage] = [] self.fs: DockerFS self.stages = build_stages self.fs = DockerFS(self.stages[-1])