- 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.
31 lines
500 B
Docker
31 lines
500 B
Docker
# Dockerfile para Broadcast Panel
|
|
FROM node:20-alpine AS builder
|
|
|
|
WORKDIR /app
|
|
|
|
# Copiar package files
|
|
COPY package*.json ./
|
|
|
|
# Instalar dependencias
|
|
RUN npm install
|
|
|
|
# Copiar código fuente
|
|
COPY . .
|
|
|
|
# Build
|
|
RUN npm run build
|
|
|
|
# Etapa de producción con nginx
|
|
FROM nginx:alpine
|
|
|
|
# Copiar build a nginx
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
|
|
# Copiar configuración de nginx
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Exponer puerto
|
|
EXPOSE 80
|
|
|
|
CMD ["nginx", "-g", "daemon off;"]
|