Add node mode with SSH auto-install and Remnawave-style manual deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-29 04:03:33 +03:00
co-authored by Cursor
parent 93bbbf8ce8
commit 7b77d84f68
20 changed files with 1470 additions and 8 deletions
+4 -2
View File
@@ -7,13 +7,15 @@ COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /out/panel ./cmd/server
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/panel ./cmd/server
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o /out/vpn-node ./cmd/node
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
RUN apk add --no-cache ca-certificates tzdata openssh-client
WORKDIR /app
COPY --from=builder /out/panel /app/panel
COPY --from=builder /out/vpn-node /app/bin/vpn-node
COPY web /app/web
ENV APP_PORT=8080