feat: 实现账号设备分组与命令日志

This commit is contained in:
Nixevol
2026-10-12 06:58:05 +08:00
parent ac68d4fe90
commit 775599174b
29 changed files with 3149 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
# syntax=docker/dockerfile:1
FROM node:24-bookworm AS web
WORKDIR /src
RUN corepack enable && corepack prepare pnpm@12.11.2 --activate
COPY --from=websrc package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY --from=websrc index.html vite.config.ts tsconfig.json env.d.ts ./
COPY --from=websrc src ./src
RUN pnpm build
FROM golang:1.27-bookworm AS build
WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY --from=web /src/dist ./internal/webui/dist
ENV CGO_ENABLED=0
RUN go build -tags embeddist -trimpath -ldflags "-s -w" -o /out/tapremly ./cmd/tapremly
FROM alpine:3.21
RUN apk add --no-cache ca-certificates su-exec wget
COPY --from=build /out/tapremly /usr/local/bin/tapremly
COPY deploy/entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh /usr/local/bin/tapremly
EXPOSE 8080
ENTRYPOINT ["/entrypoint.sh"]