Skip to content

Commit 81d2ca2

Browse files
author
Kundai Sachikonye
committed
analytics framework
1 parent b810053 commit 81d2ca2

File tree

9 files changed

+1748
-0
lines changed

9 files changed

+1748
-0
lines changed

analytics/Dockerfile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
FROM python:3.11-slim
2+
3+
# Install system dependencies
4+
RUN apt-get update && apt-get install -y \
5+
build-essential \
6+
cmake \
7+
libopencv-dev \
8+
libgl1-mesa-glx \
9+
libglib2.0-0 \
10+
libsm6 \
11+
libxext6 \
12+
libxrender-dev \
13+
libgomp1 \
14+
wget \
15+
&& rm -rf /var/lib/apt/lists/*
16+
17+
# Set working directory
18+
WORKDIR /app
19+
20+
# Copy requirements first for better caching
21+
COPY requirements.txt .
22+
23+
# Install Python dependencies
24+
RUN pip install --no-cache-dir -r requirements.txt
25+
26+
# Copy application code
27+
COPY . .
28+
29+
# Create necessary directories
30+
RUN mkdir -p /app/models /app/streams /app/storage
31+
32+
# Set environment variables
33+
ENV PYTHONPATH=/app
34+
ENV MODEL_CACHE_PATH=/app/models
35+
ENV CUDA_VISIBLE_DEVICES=0
36+
37+
# Expose port
38+
EXPOSE 8000
39+
40+
# Run the application
41+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]

analytics/frameworks/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Vibrio and Moriarty Computer Vision Frameworks

0 commit comments

Comments
 (0)