mirror of
https://github.com/ruvnet/RuView.git
synced 2026-04-28 05:59:32 +00:00
34 lines
830 B
Text
34 lines
830 B
Text
# WiFi-DensePose Python Sensing Pipeline
|
|
# RSSI-based presence/motion detection + WebSocket server
|
|
|
|
FROM python:3.11-slim-bookworm
|
|
|
|
WORKDIR /app
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install Python dependencies
|
|
COPY v1/requirements-lock.txt /app/requirements.txt
|
|
RUN pip install --no-cache-dir -r requirements.txt \
|
|
&& pip install --no-cache-dir websockets uvicorn fastapi
|
|
|
|
# Copy application code
|
|
COPY v1/ /app/v1/
|
|
COPY ui/ /app/ui/
|
|
|
|
# Copy sensing modules
|
|
COPY v1/src/sensing/ /app/v1/src/sensing/
|
|
|
|
EXPOSE 8765
|
|
EXPOSE 8080
|
|
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
#Prevent Python from writing .pyc files and __pycache__ folders to disk
|
|
#Make the runtime faster
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
|
|
CMD ["python", "-m", "v1.src.sensing.ws_server"]
|