forked from ruvnet/RuView
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.python
More file actions
34 lines (23 loc) · 830 Bytes
/
Dockerfile.python
File metadata and controls
34 lines (23 loc) · 830 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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"]