From c188e684657f5f6fc7b23998e87155ba3b2fbfa0 Mon Sep 17 00:00:00 2001 From: kewldan <40865857+kewldan@users.noreply.github.com> Date: Sun, 12 Jul 2026 01:33:38 +0300 Subject: [PATCH 1/2] =?UTF-8?q?build(docker):=20=D0=BD=D0=B5=20=D0=B3?= =?UTF-8?q?=D0=BE=D0=BD=D1=8F=D1=82=D1=8C=20tsc=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D1=81=D0=B1=D0=BE=D1=80=D0=BA=D0=B5=20=D0=BE=D0=B1=D1=80=D0=B0?= =?UTF-8?q?=D0=B7=D0=B0=20=E2=80=94=20=D1=82=D0=B0=D0=B9=D0=BF=D1=87=D0=B5?= =?UTF-8?q?=D0=BA=20=D1=83=D0=B6=D0=B5=20=D0=B4=D0=B5=D0=BB=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20CI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 7 +++++-- package.json | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index de296d3..7380a52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,10 @@ ENV VITE_TELEGRAM_BOT_USERNAME=$VITE_TELEGRAM_BOT_USERNAME ENV VITE_APP_NAME=$VITE_APP_NAME ENV VITE_APP_LOGO=$VITE_APP_LOGO -# Build the application -RUN npm run build +# Build the application. Type-check намеренно пропущен: tsc --noEmit уже +# гоняется CI на каждый PR (lint.yml), образ собирается из проверенного +# коммита - повторная проверка стоила бы ~10s на каждую сборку. +RUN npm run build:docker # Stage 2: Serve with Nginx FROM nginx:alpine @@ -40,3 +42,4 @@ EXPOSE 80 # Health check HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1 + diff --git a/package.json b/package.json index f9298a5..48a2184 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", + "build:docker": "vite build", "lint": "eslint .", "lint:fix": "eslint . --fix", "format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"", From 8af8232e2f4adfb3a4b4a31855219442e531601e Mon Sep 17 00:00:00 2001 From: kewldan <40865857+kewldan@users.noreply.github.com> Date: Sun, 12 Jul 2026 01:56:52 +0300 Subject: [PATCH 2/2] =?UTF-8?q?fix(build):=20=D0=B2=D0=B5=D1=80=D0=BD?= =?UTF-8?q?=D1=83=D1=82=D1=8C=20build:docker,=20=D0=BF=D0=BE=D1=82=D0=B5?= =?UTF-8?q?=D1=80=D1=8F=D0=BD=D0=BD=D1=8B=D0=B9=20=D0=BF=D1=80=D0=B8=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=80=D0=B6=D0=B5=20dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 7d9fc8a..0047cc3 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "scripts": { "dev": "vite", "build": "tsc && vite build", + "build:docker": "vite build", "lint": "biome lint .", "lint:fix": "biome lint --write .", "format": "biome format --write .",