Add project files
Verificar despliegue Docker / build (push) Has been cancelled

This commit is contained in:
Andres Santana
2026-10-02 11:12:37 -04:00
parent 10d76c094f
commit 47cf941ba7
177 changed files with 31728 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# 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.
FROM node:22-alpine AS build
WORKDIR /app
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;"]