- Changed development port for studio-panel from 3001 to 3020 in package.json and vite.config.ts. - Refactored Studio component in studio-panel to improve token handling and error diagnostics. - Added utility functions for token validation and JWT decoding in Studio component. - Enhanced error handling and user feedback in Studio component when token is invalid. - Implemented sessionStorage management for token and server URL in Studio component. - Created Docker setup for broadcast-panel including Dockerfile, Dockerfile.dev, and docker-compose.yml. - Added Nginx configuration for serving the broadcast-panel as a Single Page Application. - Introduced Banner component in broadcast-panel for displaying messages and actions. - Added start-docker.sh script for easy Docker management of broadcast-panel. - Implemented Playwright E2E tests for token handling and UI interactions between broadcast-panel and studio-panel. - Included SSL certificates for local development in studio-panel.
26 lines
542 B
Docker
26 lines
542 B
Docker
# Dockerfile de desarrollo para Broadcast Panel
|
|
FROM node:20-alpine
|
|
|
|
WORKDIR /app
|
|
|
|
# Instalar dependencias del sistema
|
|
RUN apk add --no-cache git
|
|
|
|
# Copiar tsconfig.json base desde la raíz del monorepo
|
|
COPY tsconfig.json /tsconfig.json
|
|
|
|
# Copiar shared folder (necesario para @shared alias)
|
|
COPY shared /shared
|
|
|
|
# Copiar package files
|
|
COPY packages/broadcast-panel/package*.json ./
|
|
|
|
# Instalar dependencias
|
|
RUN npm install
|
|
|
|
# Exponer puerto de Vite
|
|
EXPOSE 5173
|
|
|
|
# Comando para desarrollo
|
|
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|