feat: plantilla base workspace SaaS
Some checks failed
Build Producción & Push a Harbor / test (push) Failing after 3s
Build Producción & Push a Harbor / build (push) Has been skipped
Aduanasoft/plantillas-proyectos/pipeline/head There was a failure building this commit

This commit is contained in:
2026-07-21 13:59:00 -05:00
commit bdd089954b
470 changed files with 70022 additions and 0 deletions

34
frontend/Dockerfile Normal file
View File

@@ -0,0 +1,34 @@
FROM node:20-alpine
WORKDIR /app
# Instalar dependencias del sistema necesarias para healthchecks
RUN apk update && apk add --no-cache ca-certificates wget && update-ca-certificates
# Copiar package files
COPY package.json pnpm-lock.yaml ./
# Instalar pnpm
RUN npm config set strict-ssl false
RUN npm install -g pnpm
# Instalar dependencias
RUN pnpm install
# Entrypoint (espera API backend en dev; no montar desde el host)
COPY docker-entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Copiar código
COPY . .
# Build (para producción)
# RUN pnpm run build
# Exponer puerto
EXPOSE 5173
ENTRYPOINT ["/entrypoint.sh"]
# Comando por defecto (desarrollo)
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]