From abd5a73b5131e2db447e2d9982ec8a27b707d3b4 Mon Sep 17 00:00:00 2001 From: Dmitriy Petrov Date: Fri, 8 May 2026 18:32:26 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=BF=D0=B5=D1=80=D0=B5=D0=BD=D0=B5?= =?UTF-8?q?=D1=81=D1=82=D0=B8=20=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D1=83=20?= =?UTF-8?q?=D1=84=D1=80=D0=BE=D0=BD=D1=82=D0=B0=20=D0=BD=D0=B0=20=D1=85?= =?UTF-8?q?=D0=BE=D1=81=D1=82=20CI,=20=D1=83=D0=B1=D1=80=D0=B0=D1=82=D1=8C?= =?UTF-8?q?=20ui-build=20=D1=81=D1=82=D0=B0=D0=B4=D0=B8=D1=8E=20=D0=B8?= =?UTF-8?q?=D0=B7=20Docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 - .gitea/workflows/gateway-build.yml | 7 +++++++ Dockerfile | 11 +---------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.dockerignore b/.dockerignore index a480db3..1a16a95 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,5 +1,4 @@ node_modules -dist .vpn-proxy _archive .git diff --git a/.gitea/workflows/gateway-build.yml b/.gitea/workflows/gateway-build.yml index 998e912..7037c4f 100644 --- a/.gitea/workflows/gateway-build.yml +++ b/.gitea/workflows/gateway-build.yml @@ -23,6 +23,13 @@ jobs: cd repo git checkout ${{ gitea.sha }} + - name: Build frontend + run: | + set -euo pipefail + cd repo + npm ci --no-audit --no-fund + npm run build + - name: Build and push gateway image run: | set -euo pipefail diff --git a/Dockerfile b/Dockerfile index ba608a0..382fd97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,6 @@ -FROM node:22-bookworm-slim AS ui-build -WORKDIR /app -COPY package.json package-lock.json ./ -RUN --mount=type=cache,target=/root/.npm \ - npm ci --no-audit --no-fund --network-timeout=300000 -COPY index.html vite.config.js ./ -COPY src/web ./src/web -RUN npm run build - FROM debian:bookworm-slim ARG SINGBOX_VERSION=1.12.13 -COPY --from=ui-build /app/dist /app/dist +COPY dist /app/dist RUN apt-get update \ && apt-get install -y --no-install-recommends ca-certificates curl iptables iproute2 nodejs dumb-init \