mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 01:23:47 +00:00
Merge PR #476: не гонять tsc при docker-сборке
tsc в vite-проекте ничего не эмитит (noEmit) — только тип-гейт, который уже стоит в CI и в самом docker-воркфлоу (build-and-push: needs: lint). build:docker = vite build; npm run build с tsc сохранён для людей и CI. ~10s с каждой сборки образа. Спасибо @kewldan.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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 .",
|
||||
|
||||
Reference in New Issue
Block a user