From 4badf7a6eeec667a5fdc133ec72aeb24a2eedd09 Mon Sep 17 00:00:00 2001 From: badrogger Date: Mon, 18 Nov 2024 12:31:23 +0000 Subject: [PATCH] Fix Dockerfile deps installation --- Dockerfile | 2 +- node_cli/core/nftables.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18f8b2f4..97acbed3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM python:3.11-bookworm ENV DEBIAN_FRONTEND=noninteractive -RUN apt-get update && \ +RUN apt-get update && sudo apt install \ git \ build-essential \ software-properties-common \ diff --git a/node_cli/core/nftables.py b/node_cli/core/nftables.py index 65d2ba4c..b295162e 100644 --- a/node_cli/core/nftables.py +++ b/node_cli/core/nftables.py @@ -55,7 +55,7 @@ def get_chains(self) -> list[str]: return [] def flush(self) -> None: - self.run_cmd('flush ruleset') + self.nft.cmd('flush ruleset') def chain_exists(self, chain_name: str) -> bool: return chain_name in self.get_chains()