Files
pyBTMCP/Dockerfile
Matt Hills 1c6b9db903 Initial release v1.0.0 - BLE Device Simulator with MCP Integration
Features:
- MCP server with tools for AI-controlled device simulation
- FastAPI backend with REST API and WebSocket support
- Real-time device updates via WebSocket
- Web UI for manual device control
- ESP32 firmware for BLE device simulation
- Docker containerization with MQTT broker

Supported device types:
- Heart Rate Monitor (BLE Heart Rate Service)
- Treadmill (BLE Fitness Machine Service)
- Bike Trainer (BLE Cycling Power Service)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-19 11:50:10 -05:00

31 lines
704 B
Docker

FROM python:3.12-slim
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
mosquitto \
mosquitto-clients \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /app
# Copy requirements first for layer caching
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY src/ ./src/
COPY config/ ./config/
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
# Expose ports
# 1883 - MQTT broker (for ESP32 connections)
# 8000 - Web UI / REST API
EXPOSE 1883 8000
# MCP server runs as main process via entrypoint
# Mosquitto and API run as background processes
ENTRYPOINT ["/app/entrypoint.sh"]