chore: Add dockerfile and interface and files for support firewalls

This commit is contained in:
2026-06-11 21:47:48 +03:00
parent fca7d8bbc9
commit 0f1ea0a11d
6 changed files with 28 additions and 2 deletions
+18
View File
@@ -0,0 +1,18 @@
FROM golang:1.26.1 AS Builder
COPY go.mod go.sum ./
RUN go mod download
COPY . .
ENV CGO_ENABLED=0
RUN go build -o /bin/agent .
FROM alpine:latest
COPY --from=Builder /bin/agent /bin/agent
ENTRYPOINT ["/bin/agent"]
+3 -2
View File
@@ -1,9 +1,10 @@
module gitea.d3m0k1d.ru/HellreigN/Agent
go 1.26.4
go 1.26.1
require github.com/spf13/cobra v1.10.2
require (
github.com/inconshreveable/mousetrap v1.1.0 // indirect
github.com/spf13/cobra v1.10.2 // indirect
github.com/spf13/pflag v1.0.10 // indirect
)
+1
View File
@@ -0,0 +1 @@
package firewall
+1
View File
@@ -0,0 +1 @@
package firewall
+1
View File
@@ -0,0 +1 @@
package firewall
+4
View File
@@ -0,0 +1,4 @@
package firewall
type Firewall interface {
}