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 BASE_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,13 +15,14 @@ COPY monitoring/grafana/harbor-gateway.json ./monitoring/grafana/harbor-gateway.
RUN npm run build:production
FROM ${BASE_IMAGE}
COPY --from=build /usr/local /usr/local
ARG SINGBOX_VERSION=1.14.0-rc.5
ARG INSTALL_RUNTIME_DEPS=true
ARG INSTALL_SINGBOX=true
RUN if [ "${INSTALL_RUNTIME_DEPS}" = "true" ]; then \
apt-get update \
&& apt-get install -y --no-install-recommends ca-certificates curl iptables iproute2 ieee-data nodejs dumb-init \
&& apt-get install -y --no-install-recommends ca-certificates curl iptables iproute2 ieee-data dumb-init \
&& rm -rf /var/lib/apt/lists/*; \
else \
command -v dumb-init >/dev/null \
@@ -49,6 +52,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.sh /entrypoint.sh