Files
plantillas-proyectos/frontend/Dockerfile
acazares 2a10d7d267 feat: Add frontend and backend initialization scripts, implement Keycloak and PostgreSQL setup
- Implemented SvelteKit frontend with authentication callback handling.
- Created demo routes and paraglide localization functionality.
- Added health check and entrypoint scripts for backend services.
- Established PostgreSQL and Keycloak initialization scripts with health checks.
- Introduced models for database schema using SQLAlchemy.
- Configured Vite and SvelteKit for development and testing environments.
- Added health check script to verify service statuses and resource usage.
- Created Docker entrypoint scripts for seamless service startup.
2025-10-19 00:14:06 -05:00

31 lines
579 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 --frozen-lockfile
# Copiar código
COPY . .
# Build (para producción)
# RUN pnpm run build
# Exponer puerto
EXPOSE 5173
# Comando por defecto (desarrollo)
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]