mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +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_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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user