mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 01:23:47 +00:00
build(docker): не гонять tsc при сборке образа — тайпчек уже делает CI
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_NAME=$VITE_APP_NAME
|
||||||
ENV VITE_APP_LOGO=$VITE_APP_LOGO
|
ENV VITE_APP_LOGO=$VITE_APP_LOGO
|
||||||
|
|
||||||
# Build the application
|
# Build the application. Type-check намеренно пропущен: tsc --noEmit уже
|
||||||
RUN npm run build
|
# гоняется CI на каждый PR (lint.yml), образ собирается из проверенного
|
||||||
|
# коммита - повторная проверка стоила бы ~10s на каждую сборку.
|
||||||
|
RUN npm run build:docker
|
||||||
|
|
||||||
# Stage 2: Serve with Nginx
|
# Stage 2: Serve with Nginx
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
@@ -40,3 +42,4 @@ EXPOSE 80
|
|||||||
# Health check
|
# Health check
|
||||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||||
CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1
|
CMD wget --no-verbose --tries=1 --spider http://localhost:80/ || exit 1
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "tsc && vite build",
|
"build": "tsc && vite build",
|
||||||
|
"build:docker": "vite build",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
"format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"",
|
"format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"",
|
||||||
|
|||||||
Reference in New Issue
Block a user