from common import print_message
from src.interface.dotnet_project import DotnetProjectInterface
from src.interface.project_with_docker import ProjectWithDockerInterface


class DotnetApp(DotnetProjectInterface, ProjectWithDockerInterface):
    def __init__(self):
        super().__init__()
        self.publish_type = "publish --no-self-contained"

    def compile(self):
        super().compile()
        self._publish()

    def package(self):
        self._push_image()

    def trivy_scan_image(self, custom_args=""):
        super().trivy_scan_image(custom_args="--skip-dirs app")
