Replace remote with current working tree
Verificar despliegue Docker / build (push) Has been cancelled
Verificar despliegue Docker / build (push) Has been cancelled
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
# Coolify: repositorio Git, contexto /, Dockerfile /Dockerfile, puerto 8080.
|
||||
# Asigna tu dominio y habilita HTTPS en el proxy de Coolify.
|
||||
# Supabase permanece alojado en el proyecto existente; no necesita otra base de datos.
|
||||
# No añadas service_role ni claves de correo como argumentos de compilación.
|
||||
#
|
||||
# La etapa de compilación usa node:22-slim (glibc/Debian), NO node:22-alpine.
|
||||
# El package-lock.json incluye los binarios nativos "gnu" de Rollup y @napi-rs/lzma
|
||||
# (sin variantes musl); en Alpine (musl) esos .node no cargan y la compilación de
|
||||
# Vite falla. glibc coincide con el lockfile y con el entorno verificado.
|
||||
FROM node:22-slim AS build
|
||||
WORKDIR /app
|
||||
# Tolerancia a redes inestables del VPS durante npm ci.
|
||||
ENV NPM_CONFIG_FETCH_RETRIES=5 \
|
||||
NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=20000 \
|
||||
NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=120000
|
||||
COPY package.json package-lock.json ./
|
||||
COPY apps/web/package.json ./apps/web/package.json
|
||||
RUN npm ci --include=dev --no-audit --no-fund
|
||||
COPY apps/web ./apps/web
|
||||
# Configuración independiente de producción, sin herramientas del editor Horizons.
|
||||
RUN cd apps/web && ../../node_modules/.bin/vite build --config vite.production.config.js --outDir ../../dist/apps/web
|
||||
|
||||
FROM nginx:stable-alpine AS runtime
|
||||
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
COPY --from=build /app/dist/apps/web /usr/share/nginx/html
|
||||
EXPOSE 8080
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD busybox wget -q -O /dev/null http://127.0.0.1:8080/healthz || exit 1
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user