Enhance Docker configuration and update dependencies for Realtime Agent Studio
- Updated Dockerfile for the API to include build tools for C++11 required for native extensions. - Revised requirements.txt to upgrade several dependencies, including FastAPI and SQLAlchemy. - Expanded docker-compose.yml to add MinIO service for S3-compatible storage and improved health checks for backend and engine services. - Enhanced README.md in the Docker directory to provide detailed service descriptions and quick start instructions. - Updated mkdocs.yml to reflect new navigation structure and added deployment overview documentation. - Introduced new Dockerfiles for the engine and web services, including development configurations for hot reloading.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
ARG REGISTRY_MIRROR=docker.1ms.run
|
||||
FROM ${REGISTRY_MIRROR}/node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -8,11 +9,14 @@ RUN npm ci
|
||||
|
||||
COPY . .
|
||||
ARG VITE_API_BASE_URL=http://localhost:8100/api
|
||||
ARG VITE_ENGINE_WS_URL=ws://localhost:8001/ws
|
||||
ENV VITE_API_BASE_URL=$VITE_API_BASE_URL
|
||||
ENV VITE_ENGINE_WS_URL=$VITE_ENGINE_WS_URL
|
||||
RUN npm run build
|
||||
|
||||
# Serve stage (no nginx – Node + serve on port 6000)
|
||||
FROM node:20-alpine
|
||||
ARG REGISTRY_MIRROR=docker.1ms.run
|
||||
FROM ${REGISTRY_MIRROR}/node:20-alpine
|
||||
|
||||
RUN npm install -g serve
|
||||
|
||||
|
||||
13
web/Dockerfile.dev
Normal file
13
web/Dockerfile.dev
Normal file
@@ -0,0 +1,13 @@
|
||||
# Development: run Vite dev server with hot reload (source mounted as volume)
|
||||
ARG REGISTRY_MIRROR=docker.1ms.run
|
||||
FROM ${REGISTRY_MIRROR}/node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
# App code is mounted at runtime; no COPY of source
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["npm", "run", "dev"]
|
||||
Reference in New Issue
Block a user