Migrate Harbor state and traffic history to SQLite
Build and Deploy Gateway / build-and-push (push) Successful in 1m22s
Build and Deploy Gateway / deploy (push) Successful in 16s

This commit is contained in:
2026-09-10 19:21:21 +03:00
parent ab14fc979e
commit 1ae23d848b
48 changed files with 1703 additions and 446 deletions
+9 -2
View File
@@ -1,8 +1,10 @@
ARG NODE_BUILD_IMAGE=node:20.19-alpine
ARG NODE_BUILD_IMAGE=node:24.21.0-bookworm
ARG RUNTIME_IMAGE=debian:bookworm-slim
FROM ${NODE_BUILD_IMAGE} AS build
WORKDIR /src
COPY scripts/check-sqlite-runtime.mjs ./scripts/check-sqlite-runtime.mjs
RUN node scripts/check-sqlite-runtime.mjs
COPY package.json package-lock.json ./
RUN npm ci
COPY index.html vite.config.ts tsconfig*.json ./
@@ -13,10 +15,11 @@ COPY monitoring/grafana/harbor-gateway.json ./monitoring/grafana/harbor-gateway.
RUN npm run build:production
FROM ${RUNTIME_IMAGE}
COPY --from=build /usr/local /usr/local
ARG SINGBOX_VERSION=1.14.0-rc.5
RUN apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl dumb-init nodejs tar \
&& apt-get install -y --no-install-recommends ca-certificates curl dumb-init tar \
&& rm -rf /var/lib/apt/lists/*
RUN set -eux; \
@@ -37,6 +40,10 @@ COPY --from=build /src/dist /app/dist
COPY --from=build /src/node_modules/@bufbuild/protobuf /app/node_modules/@bufbuild/protobuf
COPY --from=build /src/node_modules/@connectrpc/connect /app/node_modules/@connectrpc/connect
COPY --from=build /src/node_modules/@connectrpc/connect-node /app/node_modules/@connectrpc/connect-node
COPY --from=build /src/node_modules/tldts /app/node_modules/tldts
COPY --from=build /src/node_modules/tldts-core /app/node_modules/tldts-core
COPY scripts/check-sqlite-runtime.mjs /app/scripts/check-sqlite-runtime.mjs
RUN node /app/scripts/check-sqlite-runtime.mjs
COPY package.json /app/package.json
COPY entrypoint.client.sh /entrypoint.client.sh