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 ece542c..2f73637 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 .",