Files
plantillas-proyectos/frontend/Dockerfile
Kevin_Ramirez bdd089954b
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
feat: plantilla base workspace SaaS
2026-07-21 13:59:00 -05:00

35 lines
726 B
Docker

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"]