feat: 实现账号设备分组与命令日志
This commit is contained in:
+27
@@ -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"]
|
||||
Reference in New Issue
Block a user